mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '199d9f995d'
* commit '199d9f995d': mjpegdec: fix undefined shift Conflicts: libavcodec/mjpegdec.c See:b432960528Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
c53a1507aa
1 changed files with 2 additions and 0 deletions
|
|
@ -1295,6 +1295,8 @@ static int mjpeg_decode_scan_progressive_ac(MJpegDecodeContext *s, int ss,
|
|||
}
|
||||
|
||||
if (!Al) {
|
||||
// s->coefs_finished is a bitmask for coefficients coded
|
||||
// ss and se are parameters telling start and end coefficients
|
||||
s->coefs_finished[c] |= (2ULL << se) - (1ULL << ss);
|
||||
last_scan = !~s->coefs_finished[c];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue