Fixes a multi-frame FEC issue that was caught by valgrind
This commit is contained in:
parent
9283114fa1
commit
8c9c9b280d
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
|
||||||
if (frame_size <= packet_frame_size || packet_mode == MODE_CELT_ONLY || st->mode == MODE_CELT_ONLY)
|
if (frame_size <= packet_frame_size || packet_mode == MODE_CELT_ONLY || st->mode == MODE_CELT_ONLY)
|
||||||
return opus_decode_native(st, NULL, 0, pcm, frame_size, 0, 0, NULL);
|
return opus_decode_native(st, NULL, 0, pcm, frame_size, 0, 0, NULL);
|
||||||
/* Otherwise, run the PLC on everything except the size for which we might have FEC */
|
/* Otherwise, run the PLC on everything except the size for which we might have FEC */
|
||||||
ret = opus_decode_frame(st, NULL, 0, pcm, frame_size-packet_frame_size, 0);
|
ret = opus_decode_native(st, NULL, 0, pcm, frame_size-packet_frame_size, 0, 0, NULL);
|
||||||
if (ret<0)
|
if (ret<0)
|
||||||
return ret;
|
return ret;
|
||||||
/* Complete with FEC */
|
/* Complete with FEC */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue