Prevents OPUS_RESET_STATE from causing segfault.
This commit is contained in:
parent
e03af4423d
commit
d32f94876e
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -1111,7 +1111,7 @@ int opus_encoder_ctl(OpusEncoder *st, int request, ...)
|
|||
silk_enc = (char*)st+st->silk_enc_offset;
|
||||
|
||||
OPUS_CLEAR((char*)&st->OPUS_ENCODER_RESET_START,
|
||||
opus_encoder_get_size(st->channels)-
|
||||
sizeof(OpusEncoder)-
|
||||
((char*)&st->OPUS_ENCODER_RESET_START - (char*)st));
|
||||
|
||||
celt_encoder_ctl(celt_enc, OPUS_RESET_STATE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue