opus_custom_encoder_init() now only needed for custom modes.
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 21 Nov 2013 00:34:14 +0000 (19:34 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Thu, 21 Nov 2013 00:34:14 +0000 (19:34 -0500)
celt/celt_encoder.c

index de990a0..330e786 100644 (file)
@@ -197,10 +197,12 @@ static int opus_custom_encoder_init_arch(CELTEncoder *st, const CELTMode *mode,
    return OPUS_OK;
 }
 
-OPUS_CUSTOM_NOSTATIC int opus_custom_encoder_init(CELTEncoder *st, const CELTMode *mode, int channels)
+#ifdef CUSTOM_MODES
+int opus_custom_encoder_init(CELTEncoder *st, const CELTMode *mode, int channels)
 {
    return opus_custom_encoder_init_arch(st, mode, channels, opus_select_arch());
 }
+#endif
 
 int celt_encoder_init(CELTEncoder *st, opus_int32 sampling_rate, int channels,
                       int arch)