summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2011-01-26 23:03:38 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-01-30 03:41:00 +0100
commitb5a7100ad33df8c4ae9aa847633efb24d3c4b1c9 (patch)
treef982f75c64f8f4b960144d79e0a5a2cf13a5ca1b /libavformat
parent6aef89d54e65d56f2a7068d911f606a0c5b070a6 (diff)
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> (cherry picked from commit 4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd)
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/img2.c4
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++){