From 4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 26 Jan 2011 23:03:38 +0100 Subject: 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 --- libavformat/img2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libavformat/img2.c') 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++){ -- cgit v1.2.3