Commit 3c636ab8 authored by arpi_esp's avatar arpi_esp

(commit by michael)

new msmpeg4 dequantizer did dequantize too early


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@261 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f6f6ee69
...@@ -868,9 +868,10 @@ static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block, ...@@ -868,9 +868,10 @@ static int msmpeg4_decode_block(MpegEncContext * s, DCTELEM * block,
if (code < 0 || code >= rl->n) if (code < 0 || code >= rl->n)
return -1; return -1;
run = rl->table_run[code]; run = rl->table_run[code];
level = rl->table_level[code] * qmul + qadd; level = rl->table_level[code];
last = code >= rl->last; last = code >= rl->last;
run += rl->max_run[last][level] + run_diff; run += rl->max_run[last][level] + run_diff;
level= level * qmul + qadd;
if (get_bits1(&s->gb)) if (get_bits1(&s->gb))
level = -level; level = -level;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment