shithub: opus

Download patch

ref: 41e8906cd65023ef76492098a0d9ed78a7c1c554
parent: 28b49e04b789ec7c8fe7523449be7ba1395470d9
author: Jean-Marc Valin <[email protected]>
date: Wed Nov 20 14:34:14 EST 2013

opus_custom_encoder_init() now only needed for custom modes.

--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -197,10 +197,12 @@
    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)