mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
lavf/img2dec: improve error logging in case of find_image_range() failure
This commit is contained in:
parent
2dfee8abf1
commit
b5c7318bd7
@ -263,8 +263,12 @@ static int read_header(AVFormatContext *s1)
|
|||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
if (find_image_range(&first_index, &last_index, s->path,
|
if (find_image_range(&first_index, &last_index, s->path,
|
||||||
s->start_number) < 0)
|
s->start_number) < 0) {
|
||||||
|
av_log(s1, AV_LOG_ERROR,
|
||||||
|
"Could find no file with with path '%s' and index in the range %d-%d\n",
|
||||||
|
s->path, s->start_number, s->start_number+FIRST_INDEX_SEARCH_RANGE-1);
|
||||||
return AVERROR(ENOENT);
|
return AVERROR(ENOENT);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
s->img_first = first_index;
|
s->img_first = first_index;
|
||||||
s->img_last = last_index;
|
s->img_last = last_index;
|
||||||
|
Loading…
Reference in New Issue
Block a user