Skip to content
Snippets Groups Projects
Commit 2c1a11ff authored by Jean-Marc Valin's avatar Jean-Marc Valin
Browse files

Adds assert to catch bug from previous commit

parent 8c9c9b28
No related branches found
No related tags found
No related merge requests found
......@@ -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);
if (ret<0)
return ret;
celt_assert(ret==frame_size-packet_frame_size);
/* Complete with FEC */
st->mode = packet_mode;
st->bandwidth = packet_bandwidth;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment