mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
(commit by michael)
new msmpeg4 dequantizer did dequantize too early Originally committed as revision 261 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
badaf88eeb
commit
99180fe39d
@ -868,9 +868,10 @@ static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
|
||||
if (code < 0 || code >= rl->n)
|
||||
return -1;
|
||||
run = rl->table_run[code];
|
||||
level = rl->table_level[code] * qmul + qadd;
|
||||
level = rl->table_level[code];
|
||||
last = code >= rl->last;
|
||||
run += rl->max_run[last][level] + run_diff;
|
||||
level= level * qmul + qadd;
|
||||
if (get_bits1(&s->gb))
|
||||
level = -level;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user