lavf/img2dec: fix out-of-range check in find_image_range()
Take the new parameter start_index into account.
This commit is contained in:
parent
59e4e40673
commit
07ef7b1a30
@ -135,7 +135,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
|
|||||||
if (avio_check(buf, AVIO_FLAG_READ) > 0)
|
if (avio_check(buf, AVIO_FLAG_READ) > 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (first_index == 5)
|
if (first_index == start_index + 5)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* find the last image */
|
/* find the last image */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user