[FFmpeg-devel] [PATCH] lavf/img2dec: improve error logging in case can't find file within range
Stefano Sabatini
stefasab at gmail.com
Sat Aug 4 18:39:32 CEST 2012
---
libavformat/img2dec.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 9f4bc05..472ebef 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -262,8 +262,12 @@ static int read_header(AVFormatContext *s1)
#endif
} else {
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);
+ }
}
s->img_first = first_index;
s->img_last = last_index;
--
1.7.5.4
More information about the ffmpeg-devel
mailing list