From a28d52249171fd7adb95f210a3a71cec498bf790 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 23 Jan 2009 06:31:17 +0000 Subject: [PATCH] VC-1 postproc field is 2 bits wide while decoder read only single bit. Spotted by Stephen Warren. Originally committed as revision 16725 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/vc1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index e329ac9559..78b76d103e 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -1407,7 +1407,7 @@ static int vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) if (v->quantizer_mode == QUANT_FRAME_EXPLICIT) v->pquantizer = get_bits1(gb); if(v->postprocflag) - v->postproc = get_bits1(gb); + v->postproc = get_bits(gb, 2); if(v->s.pict_type == FF_I_TYPE || v->s.pict_type == FF_P_TYPE) v->use_ic = 0;