From: Michael Niedermayer Date: Sat, 23 Apr 2016 15:23:59 +0000 (+0200) Subject: avcodec/utils: Assert that the number of consumed bytes in avcodec_decode_audio4... X-Git-Tag: android-x86-7.1-r1~5502 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=38433345e5039ed8fa241d41d6a3bdd2dcb8a278;p=android-x86%2Fexternal-ffmpeg.git avcodec/utils: Assert that the number of consumed bytes in avcodec_decode_audio4() is <= the input size Signed-off-by: Michael Niedermayer --- diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 946ecb9f00..21ad3cf049 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2422,6 +2422,8 @@ fail: av_frame_unref(frame); } + av_assert0(ret <= avpkt->size); + return ret; }