Browse Source

+ (sign&1) -> -sign (1 instruction less)

Originally committed as revision 5253 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
e7e2025a53
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/mjpeg.c

+ 1
- 1
libavcodec/mjpeg.c View File

@@ -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)


Loading…
Cancel
Save