shithub: opus

Download patch

ref: 2c1a11ff8ae475e618b862e939ed66b70eea723a
parent: 8c9c9b280dd4ced13823d23d436c6e86364227ae
author: Jean-Marc Valin <[email protected]>
date: Tue Dec 4 19:54:21 EST 2012

Adds assert to catch bug from previous commit

--- a/src/opus_decoder.c
+++ b/src/opus_decoder.c
@@ -782,6 +782,7 @@
       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;