Mercurial > libavcodec.hg
changeset 4237:327e9d4572cb libavcodec
100l: Initialize dc_scale with current quantizer for adv I frames
author | kostya |
---|---|
date | Sun, 26 Nov 2006 04:53:36 +0000 |
parents | aee20d5bd41f |
children | a784639411d6 |
files | vc1.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);