ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Sat 
Apr 23 17:23:59 2016 +0200| [38433345e5039ed8fa241d41d6a3bdd2dcb8a278] | 
committer: Michael Niedermayer

avcodec/utils: Assert that the number of consumed bytes in 
avcodec_decode_audio4() is <= the input size

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38433345e5039ed8fa241d41d6a3bdd2dcb8a278
---

 libavcodec/utils.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 946ecb9..21ad3cf 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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to