mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
mjpegdec: fix undefined shift
Add a comment to explain the code. CC: libav-stable@libav.org Bug-Id: CID 1194388
This commit is contained in:
parent
ac4a5e3abd
commit
199d9f995d
@ -964,7 +964,9 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
|
||||
init_get_bits(&mb_bitmask_gb, mb_bitmask, s->mb_width * s->mb_height);
|
||||
|
||||
if (!Al) {
|
||||
s->coefs_finished[c] |= (1LL << (se + 1)) - (1LL << ss);
|
||||
// s->coefs_finished is a bitmask for coefficients coded
|
||||
// ss and se are parameters telling start and end coefficients
|
||||
s->coefs_finished[c] |= (~0ULL >> (63 - (se - ss))) << ss;
|
||||
last_scan = !~s->coefs_finished[c];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user