Commit aaf6ddfa authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: Fix undefined shift

Fixes CID1194388
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
(cherry picked from commit b4329605)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2b45eab4
......@@ -1229,7 +1229,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