changeset 4518:e3c43b4aa9ac libavcodec

Intensity compensation for B-frames in AP was missing
author kostya
date Tue, 13 Feb 2007 07:48:23 +0000
parents 75701d9842cc
children b08a4d11e01c
files vc1.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Mon Feb 12 23:23:05 2007 +0000
+++ b/vc1.c	Tue Feb 13 07:48:23 2007 +0000
@@ -1684,6 +1684,8 @@
     if (v->quantizer_mode == QUANT_FRAME_EXPLICIT)
         v->pquantizer = get_bits(gb, 1);
 
+    if(v->s.pict_type == I_TYPE || v->s.pict_type == P_TYPE) v->use_ic = 0;
+
     switch(v->s.pict_type) {
     case I_TYPE:
     case BI_TYPE:
@@ -1741,6 +1743,7 @@
                 v->luty[i] = clip_uint8((scale * i + shift + 32) >> 6);
                 v->lutuv[i] = clip_uint8((scale * (i - 128) + 128*64 + 32) >> 6);
             }
+            v->use_ic = 1;
         }
         if(v->mv_mode == MV_PMODE_1MV_HPEL || v->mv_mode == MV_PMODE_1MV_HPEL_BILIN)
             v->s.quarter_sample = 0;