Mercurial > libavcodec.hg
diff msmpeg4.c @ 201:91ed656e7339 libavcodec
(commit by michael)
new msmpeg4 dequantizer did dequantize too early
author | arpi_esp |
---|---|
date | Sun, 13 Jan 2002 06:12:35 +0000 |
parents | 6ab301aaa652 |
children | fceb435fae6b |
line wrap: on
line diff
--- a/msmpeg4.c Sun Jan 13 04:59:37 2002 +0000 +++ b/msmpeg4.c Sun Jan 13 06:12:35 2002 +0000 @@ -868,9 +868,10 @@ 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; }