Commit 8294ec67 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/jpeg2000dwt: add special cases for handling length 1 in 5/3 decode

Fixes Ticket4630
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 20657e05
......@@ -290,8 +290,11 @@ static void sr_1d53(int *p, int i0, int i1)
{
int i;
if (i1 == i0 + 1)
if (i1 <= i0 + 1) {
if (i0 == 1)
p[1] >>= 1;
return;
}
extend53(p, i0, i1);
......
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