Adds assert to catch bug from previous commit
authorJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 5 Dec 2012 05:54:21 +0000 (00:54 -0500)
committerJean-Marc Valin <jmvalin@jmvalin.ca>
Wed, 5 Dec 2012 05:54:21 +0000 (00:54 -0500)
src/opus_decoder.c

index 3f38d8c..e2b9ed9 100644 (file)
@@ -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;