From 0db2d3cf1d8b6483160707e1ee0f0574b13c30c6 Mon Sep 17 00:00:00 2001 From: Daniel Kristjansson Date: Wed, 30 Jun 2010 21:46:03 +0000 Subject: [PATCH] Do not skip one of three bits zero padding. Patch by Daniel Kristjansson, danielk cuymedia net Originally committed as revision 23914 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/mpeg12.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 24beae3a13..9f2d23d2be 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -1440,7 +1440,7 @@ static void mpeg_decode_sequence_display_extension(Mpeg1Context *s1) w= get_bits(&s->gb, 14); skip_bits(&s->gb, 1); //marker h= get_bits(&s->gb, 14); - skip_bits(&s->gb, 1); //marker + // remaining 3 bits are zero padding s1->pan_scan.width= 16*w; s1->pan_scan.height=16*h;