mirror of
https://github.com/xiph/opus.git
synced 2025-05-15 16:08:30 +00:00
Adds assert to catch bug from previous commit
This commit is contained in:
parent
8c9c9b280d
commit
2c1a11ff8a
1 changed files with 1 additions and 0 deletions
|
@ -782,6 +782,7 @@ int opus_decode_native(OpusDecoder *st, const unsigned char *data,
|
||||||
ret = opus_decode_native(st, NULL, 0, pcm, frame_size-packet_frame_size, 0, 0, NULL);
|
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;
|
||||||
|
celt_assert(ret==frame_size-packet_frame_size);
|
||||||
/* Complete with FEC */
|
/* Complete with FEC */
|
||||||
st->mode = packet_mode;
|
st->mode = packet_mode;
|
||||||
st->bandwidth = packet_bandwidth;
|
st->bandwidth = packet_bandwidth;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue