aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-11-26 04:53:36 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-11-26 04:53:36 +0000
commitb8ce8f15a036780bd5ee655bcac881a8cd62f85a (patch)
tree78dab44b91889004555711694d77ab1c61a48fcd /libavcodec/vc1.c
parent25e9c7efa597b8a4bfdbd68283adb59e86ffad89 (diff)
downloadffmpeg-b8ce8f15a036780bd5ee655bcac881a8cd62f85a.tar.gz
100l: Initialize dc_scale with current quantizer for adv I frames
Originally committed as revision 7169 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index 1d991df16c..0414d5e870 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -3783,10 +3783,6 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
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 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
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);