Commit fff01059 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

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: 's avatarTomas Härdin <git@haerdin.se>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent 3d8754cd
......@@ -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;
}
......
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