aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpeg.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-03-31 17:01:58 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-03-31 17:01:58 +0000
commite7e2025a535c61c9dc6f7e3226458b65f4b559d2 (patch)
tree0cda60c58596892819990c722a5829681c03df55 /libavcodec/mjpeg.c
parentac2549b583f88d488326ad65b3d2f4539b1ae732 (diff)
downloadffmpeg-e7e2025a535c61c9dc6f7e3226458b65f4b559d2.tar.gz
+ (sign&1) -> -sign (1 instruction less)
Originally committed as revision 5253 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpeg.c')
-rw-r--r--libavcodec/mjpeg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpeg.c b/libavcodec/mjpeg.c
index dbcbaed61d..8c90022bc5 100644
--- a/libavcodec/mjpeg.c
+++ b/libavcodec/mjpeg.c
@@ -1291,7 +1291,7 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block,
{
int cache=GET_CACHE(re,gb);
int sign=(~cache)>>31;
- level = (NEG_USR32(sign ^ cache,code) ^ sign) + (sign&1) ;
+ level = (NEG_USR32(sign ^ cache,code) ^ sign) - sign;
}
LAST_SKIP_BITS(re, &s->gb, code)