summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-20 19:34:14 -0500
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-20 19:34:14 -0500
commit41e8906cd65023ef76492098a0d9ed78a7c1c554 (patch)
tree7c4d68fcd5829f3cd88ad1d262bd2c2cc96dcc1e
parent28b49e04b789ec7c8fe7523449be7ba1395470d9 (diff)
downloadopus-41e8906cd65023ef76492098a0d9ed78a7c1c554.tar.gz
opus_custom_encoder_init() now only needed for custom modes.
-rw-r--r--celt/celt_encoder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/celt/celt_encoder.c b/celt/celt_encoder.c
index de990a05..330e7867 100644
--- a/celt/celt_encoder.c
+++ b/celt/celt_encoder.c
@@ -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)