diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-03-31 17:01:58 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-03-31 17:01:58 +0000 |
commit | e7e2025a535c61c9dc6f7e3226458b65f4b559d2 (patch) | |
tree | 0cda60c58596892819990c722a5829681c03df55 | |
parent | ac2549b583f88d488326ad65b3d2f4539b1ae732 (diff) | |
download | ffmpeg-e7e2025a535c61c9dc6f7e3226458b65f4b559d2.tar.gz |
+ (sign&1) -> -sign (1 instruction less)
Originally committed as revision 5253 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/mjpeg.c | 2 |
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) |