avcodec/utils: Assert that the number of consumed bytes in avcodec_decode_audio4...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Apr 2016 15:23:59 +0000 (17:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 23 Apr 2016 15:23:59 +0000 (17:23 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/utils.c

index 946ecb9..21ad3cf 100644 (file)
@@ -2422,6 +2422,8 @@ fail:
             av_frame_unref(frame);
     }
 
+    av_assert0(ret <= avpkt->size);
+
     return ret;
 }