Prevents OPUS_RESET_STATE from causing segfault.

This commit is contained in:
Gregory Maxwell 2011-09-04 07:48:20 -04:00
parent e03af4423d
commit d32f94876e
2 changed files with 2 additions and 2 deletions

View file

@ -758,7 +758,7 @@ int opus_decoder_ctl(OpusDecoder *st, int request, ...)
celt_dec = (CELTDecoder*)((char*)st+st->celt_dec_offset);
OPUS_CLEAR((char*)&st->OPUS_DECODER_RESET_START,
opus_decoder_get_size(st->channels)-
sizeof(OpusDecoder)-
((char*)&st->OPUS_DECODER_RESET_START - (char*)st));
celt_decoder_ctl(celt_dec, OPUS_RESET_STATE);