# HG changeset patch # User kostya # Date 1164516816 0 # Node ID 327e9d4572cb6b1ce526023ae36f5ce941aa99a5 # Parent aee20d5bd41f63c3180f86269dee5c940a9f8116 100l: Initialize dc_scale with current quantizer for adv I frames diff -r aee20d5bd41f -r 327e9d4572cb vc1.c --- a/vc1.c Sun Nov 26 04:52:36 2006 +0000 +++ b/vc1.c Sun Nov 26 04:53:36 2006 +0000 @@ -3783,10 +3783,6 @@ break; } - /* Set DC scale - y and c use the same */ - s->y_dc_scale = s->y_dc_scale_table[v->pq]; - s->c_dc_scale = s->c_dc_scale_table[v->pq]; - //do frame decode s->mb_x = s->mb_y = 0; s->mb_intra = 1; @@ -3820,6 +3816,9 @@ GET_MQUANT(); s->current_picture.qscale_table[mb_pos] = mquant; + /* Set DC scale - y and c use the same */ + s->y_dc_scale = s->y_dc_scale_table[mquant]; + s->c_dc_scale = s->c_dc_scale_table[mquant]; for(k = 0; k < 6; k++) { val = ((cbp >> (5 - k)) & 1);