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:
@@ -290,8 +290,11 @@ static void sr_1d53(int *p, int i0, int i1)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (i1 == i0 + 1)
|
if (i1 <= i0 + 1) {
|
||||||
|
if (i0 == 1)
|
||||||
|
p[1] >>= 1;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
extend53(p, i0, i1);
|
extend53(p, i0, i1);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user