Commit 274793de authored by Maxim Poliakovski's avatar Maxim Poliakovski

Make dequantization equation use less registers on some CPUs.

Originally committed as revision 23391 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 25e20240
......@@ -416,7 +416,7 @@ int ff_ivi_decode_blocks(GetBitContext *gb, IVIBandDesc *band, IVITile *tile)
q = (base_tab[pos] * scale_tab[quant]) >> 8;
if (q > 1)
val = val * q + FFSIGN(val) * ((q >> 1) - (q & 1));
val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1);
trvec[pos] = val;
col_flags[pos & col_mask] |= !!val; /* track columns containing non-zero coeffs */
}// while
......
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