diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-04-27 05:32:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-04-27 05:32:56 +0200 |
commit | b4329605289e25bb071ec1c1182bf25fc83b09aa (patch) | |
tree | 030606ca81757eeda92f3b162eeb695a72cacc19 /libavcodec | |
parent | bc3234062d0820613046e56882b2f01f6bfa4144 (diff) | |
download | ffmpeg-b4329605289e25bb071ec1c1182bf25fc83b09aa.tar.gz |
avcodec/mjpegdec: Fix undefined shift
Fixes CID1194388
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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 f2f5498f0b..df1ce1e2b8 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -1272,7 +1272,7 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss, } if (!Al) { - s->coefs_finished[c] |= (1LL << (se + 1)) - (1LL << ss); + s->coefs_finished[c] |= (2LL << se) - (1LL << ss); last_scan = !~s->coefs_finished[c]; } |