changeset 8639:29096719e684 libavcodec

VC-1 postproc field is 2 bits wide while decoder read only single bit. Spotted by Stephen Warren.
author kostya
date Fri, 23 Jan 2009 06:31:17 +0000
parents 1088ea188568
children ad979489c6e7
files vc1.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Thu Jan 22 22:23:58 2009 +0000
+++ b/vc1.c	Fri Jan 23 06:31:17 2009 +0000
@@ -1407,7 +1407,7 @@
     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;