Makes the CELT init() functions behave just like the Opus ones.

This commit is contained in:
Jean-Marc Valin 2011-08-31 16:43:08 -04:00
parent 58686e6fe1
commit 875f8dbd56
4 changed files with 41 additions and 84 deletions

View file

@ -154,7 +154,7 @@ int opus_encoder_init(OpusEncoder* st, int Fs, int channels, int application)
/* Create CELT encoder */
/* Initialize CELT encoder */
celt_encoder_init(celt_enc, Fs, channels, &err);
err = celt_encoder_init(celt_enc, Fs, channels);
if (err != CELT_OK)
goto failure;
celt_encoder_ctl(celt_enc, CELT_SET_SIGNALLING(0));