summaryrefslogtreecommitdiffstats
path: root/libavformat/img2dec.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-04 17:34:53 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-05 00:38:17 +0200
commitb5c7318bd7b44db6e7cc2424adf60f6de040b439 (patch)
treef328c8eab62fdec3587d8f389431ec4bcffb5a41 /libavformat/img2dec.c
parent2dfee8abf1529a67f87e823de69d816775648d16 (diff)
downloadffmpeg-streaming-b5c7318bd7b44db6e7cc2424adf60f6de040b439.zip
ffmpeg-streaming-b5c7318bd7b44db6e7cc2424adf60f6de040b439.tar.gz
lavf/img2dec: improve error logging in case of find_image_range() failure
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r--libavformat/img2dec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index 692331c..7cdb648 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -263,8 +263,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;
OpenPOWER on IntegriCloud