Commit e31727bd authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: make type of shift unsigned to avoid undefined behavior

Found-by: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4260ed46
...@@ -1272,7 +1272,7 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss, ...@@ -1272,7 +1272,7 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
} }
if (!Al) { if (!Al) {
s->coefs_finished[c] |= (2LL << se) - (1LL << ss); s->coefs_finished[c] |= (2ULL << se) - (1ULL << ss);
last_scan = !~s->coefs_finished[c]; last_scan = !~s->coefs_finished[c];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment