Commit b4329605 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: Fix undefined shift

Fixes CID1194388
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bc323406
......@@ -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];
}
......
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