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

@ -109,7 +109,7 @@ int opus_decoder_init(OpusDecoder *st, int Fs, int channels)
}
/* Initialize CELT decoder */
celt_decoder_init(celt_dec, Fs, channels, &ret);
ret = celt_decoder_init(celt_dec, Fs, channels);
if (ret != CELT_OK)
goto failure;
celt_decoder_ctl(celt_dec, CELT_SET_SIGNALLING(0));