From 499c2d41d75fdadbf65daa9eaf743f61632f14f8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 14 Feb 2011 14:44:17 +0100 Subject: [PATCH] Make truncated mpeg4 GOP header check a bit more specific. Signed-off-by: Michael Niedermayer --- libavcodec/mpeg4videodec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c index 71b4622109..c152b3c2f2 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; }