Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-02-14 16:44:17 +0300
committerMichael Niedermayer <michaelni@gmx.at>2011-02-14 16:45:46 +0300
commit499c2d41d75fdadbf65daa9eaf743f61632f14f8 (patch)
tree00688c12545dde75d88e3b5a41b9fc532a2a5935 /libavcodec
parent49d57a8269830eef119586fced8ab090baf61b03 (diff)
Make truncated mpeg4 GOP header check a bit more specific.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg4videodec.c2
1 files changed, 1 insertions, 1 deletions
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;
}