diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-01-26 23:03:38 +0100 |
---|---|---|
committer | Janne Grunau <janne-ffmpeg@jannau.net> | 2011-01-28 18:04:33 +0100 |
commit | 4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd (patch) | |
tree | c11287b89e14f405b68d471eaca1a0a7291d9f3f | |
parent | 79dca23dc262742b312161a5dec707eb7b9c8d97 (diff) | |
download | ffmpeg-4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd.tar.gz |
Make the image2 demuxer log more verbose
Add an error message in case the user requests to write more than one file
and the path does not contain a "%d" or "%0Nd" pattern.
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
-rw-r--r-- | libavformat/img2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index 4cf409e001..9583eea5df 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -347,7 +347,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt) if (!img->is_pipe) { if (av_get_frame_filename(filename, sizeof(filename), img->path, img->img_number) < 0 && img->img_number>1) { - av_log(s, AV_LOG_ERROR, "Could not get frame filename from pattern\n"); + av_log(s, AV_LOG_ERROR, + "Could not get frame filename number %d from pattern '%s'\n", + img->img_number, img->path); return AVERROR(EIO); } for(i=0; i<3; i++){ |