Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-21 04:34:14 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-11-21 04:34:14 +0400
commit41e8906cd65023ef76492098a0d9ed78a7c1c554 (patch)
tree7c4d68fcd5829f3cd88ad1d262bd2c2cc96dcc1e
parent28b49e04b789ec7c8fe7523449be7ba1395470d9 (diff)
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)