mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-02 21:12:12 +00: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:
parent
3d8754cd09
commit
fff010591b
@ -81,7 +81,7 @@ static void sd_1d53(int *p, int i0, int i1)
|
||||
|
||||
if (i1 <= i0 + 1) {
|
||||
if (i0 == 1)
|
||||
p[1] <<= 1;
|
||||
p[1] *= 2;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user