mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-27 02:52:25 +08:00
100l: Initialize dc_scale with current quantizer for adv I frames
Originally committed as revision 7169 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@ -3783,10 +3783,6 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
|
|||||||
break;
|
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
|
//do frame decode
|
||||||
s->mb_x = s->mb_y = 0;
|
s->mb_x = s->mb_y = 0;
|
||||||
s->mb_intra = 1;
|
s->mb_intra = 1;
|
||||||
@ -3820,6 +3816,9 @@ static void vc1_decode_i_blocks_adv(VC1Context *v)
|
|||||||
GET_MQUANT();
|
GET_MQUANT();
|
||||||
|
|
||||||
s->current_picture.qscale_table[mb_pos] = 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++) {
|
for(k = 0; k < 6; k++) {
|
||||||
val = ((cbp >> (5 - k)) & 1);
|
val = ((cbp >> (5 - k)) & 1);
|
||||||
|
Reference in New Issue
Block a user