avcodec/jpeg2000dwt: add special cases for handling length 1 in 5/3 decode
Fixes Ticket4630 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
20657e05bc
commit
8294ec67b5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user