Commit 07ef7b1a authored by Stefano Sabatini's avatar Stefano Sabatini

lavf/img2dec: fix out-of-range check in find_image_range()

Take the new parameter start_index into account.
parent 59e4e406
......@@ -135,7 +135,7 @@ static int find_image_range(int *pfirst_index, int *plast_index,
if (avio_check(buf, AVIO_FLAG_READ) > 0)
break;
}
if (first_index == 5)
if (first_index == start_index + 5)
goto fail;
/* find the last image */
......
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