Making complexity default to 10 for the CELT part too
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 9 Sep 2011 18:50:15 +0000 (14:50 -0400)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Fri, 9 Sep 2011 18:50:15 +0000 (14:50 -0400)
src/opus_encoder.c

index 063e95d..c448924 100644 (file)
@@ -189,6 +189,7 @@ int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int applicat
     if(err!=OPUS_OK)return OPUS_INTERNAL_ERROR;
 
     celt_encoder_ctl(celt_enc, CELT_SET_SIGNALLING(0));
+    celt_encoder_ctl(celt_enc, OPUS_SET_COMPLEXITY(10));
 
     st->use_vbr = 0;
     st->user_bitrate_bps = OPUS_AUTO;