[FFmpeg-cvslog] Make the image2 demuxer log more verbose
Stefano Sabatini
git
Sun Jan 30 04:15:55 CET 2011
ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Wed Jan 26 23:03:38 2011 +0100| [b5a7100ad33df8c4ae9aa847633efb24d3c4b1c9] | committer: Michael Niedermayer
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 at jannau.net>
(cherry picked from commit 4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b5a7100ad33df8c4ae9aa847633efb24d3c4b1c9
---
libavformat/img2.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libavformat/img2.c b/libavformat/img2.c
index 4cf409e..9583eea 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++){
More information about the ffmpeg-cvslog
mailing list