diff options
author | Maxim Poliakovski <max_pole@gmx.de> | 2010-05-31 03:57:51 +0400 |
---|---|---|
committer | Maxim Poliakovski <max_pole@gmx.de> | 2010-05-31 03:57:51 +0400 |
commit | 274793de6e3ab77a46cae524eaecbc451154bc60 (patch) | |
tree | c7327226d3f1374bcf0cc332a6b4fb36c49b6570 /libavcodec/ivi_common.c | |
parent | 25e20240b1f3a8d89c0a884c9d521ee75696c0e9 (diff) |
Make dequantization equation use less registers on some CPUs.
Originally committed as revision 23391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ivi_common.c')
-rw-r--r-- | libavcodec/ivi_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ivi_common.c b/libavcodec/ivi_common.c index 565793d4c3..5fcaca2c3e 100644 --- a/libavcodec/ivi_common.c +++ b/libavcodec/ivi_common.c @@ -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 |