diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-10-22 02:44:28 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-10-22 02:44:28 +0400 |
commit | 76c80ef5690c6b94ad7468cd170a7519295b8d19 (patch) | |
tree | cc14069918b6cddc7dcf86ef0ce4078ce813beef /libavcodec/mjpegdec.c | |
parent | 19321824985aa5a5fc510d73bb087dffee77fccf (diff) |
Move if() in mjpeg decode_block() to simplify condition.
Originally committed as revision 25541 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 4dcbfdbc47..fe08d7bd88 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -412,8 +412,8 @@ static int decode_block(MJpegDecodeContext *s, DCTELEM *block, if (code == 0x10) break; i += ((unsigned)code) >> 4; - if(code != 0x100){ code &= 0xf; + if(code){ if(code > MIN_CACHE_BITS - 16){ UPDATE_CACHE(re, &s->gb) } |