[FFmpeg-cvslog] Make truncated mpeg4 GOP header check a bit more specific.

Michael Niedermayer git
Mon Feb 14 14:47:54 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 14 14:44:17 2011 +0100| [499c2d41d75fdadbf65daa9eaf743f61632f14f8] | committer: Michael Niedermayer

Make truncated mpeg4 GOP header check a bit more specific.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/mpeg4videodec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 71b4622..c152b3c 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1495,7 +1495,7 @@ end:
 static int mpeg4_decode_gop_header(MpegEncContext * s, GetBitContext *gb){
     int hours, minutes, seconds;
 
-    if(!show_bits(gb, 18)){
+    if(!show_bits(gb, 23)){
         av_log(s->avctx, AV_LOG_WARNING, "GOP header invalid\n");
         return -1;
     }




More information about the ffmpeg-cvslog mailing list