1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +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:
Michael Niedermayer 2002-01-13 06:12:35 +00:00
parent badaf88eeb
commit 99180fe39d

View File

@ -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;
}