You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/jpeg2000dwt: Fix left shift of negative number
Fixes the j2k-dwt FATE-test; also fixes #9945. (I don't know whether the multiplication can overflow.) Reviewed-by: Tomas Härdin <git@haerdin.se> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -81,7 +81,7 @@ static void sd_1d53(int *p, int i0, int i1)
|
|||||||
|
|
||||||
if (i1 <= i0 + 1) {
|
if (i1 <= i0 + 1) {
|
||||||
if (i0 == 1)
|
if (i0 == 1)
|
||||||
p[1] <<= 1;
|
p[1] *= 2;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user