|
|
|
@@ -131,11 +131,11 @@ static int find_image_range(int *pfirst_index, int *plast_index, |
|
|
|
if (av_get_frame_filename(buf, sizeof(buf), path, first_index) < 0){ |
|
|
|
*pfirst_index = |
|
|
|
*plast_index = 1; |
|
|
|
if(url_exist(buf)) |
|
|
|
if (avio_check(buf, AVIO_FLAG_READ) > 0) |
|
|
|
return 0; |
|
|
|
return -1; |
|
|
|
} |
|
|
|
if (url_exist(buf)) |
|
|
|
if (avio_check(buf, AVIO_FLAG_READ) > 0) |
|
|
|
break; |
|
|
|
} |
|
|
|
if (first_index == 5) |
|
|
|
@@ -153,7 +153,7 @@ static int find_image_range(int *pfirst_index, int *plast_index, |
|
|
|
if (av_get_frame_filename(buf, sizeof(buf), path, |
|
|
|
last_index + range1) < 0) |
|
|
|
goto fail; |
|
|
|
if (!url_exist(buf)) |
|
|
|
if (avio_check(buf, AVIO_FLAG_READ) <= 0) |
|
|
|
break; |
|
|
|
range = range1; |
|
|
|
/* just in case... */ |
|
|
|
|