diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-05 09:54:21 +0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2012-12-05 09:54:21 +0400 |
commit | 2c1a11ff8ae475e618b862e939ed66b70eea723a (patch) | |
tree | 200cc8a5ac4b8b98a3c7baf488a795186916c347 /src | |
parent | 8c9c9b280dd4ced13823d23d436c6e86364227ae (diff) |
Adds assert to catch bug from previous commit
Diffstat (limited to 'src')
-rw-r--r-- | src/opus_decoder.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opus_decoder.c b/src/opus_decoder.c index 3f38d8cc..e2b9ed9e 100644 --- a/src/opus_decoder.c +++ b/src/opus_decoder.c @@ -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; |