[SCM] libav/experimental: Make the image2 demuxer log more verbose

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:22:54 UTC 2013


The following commit has been merged in the experimental branch:
commit 4fc9ff0ad6f0f6b2c7443c6b4a3a1c817e97fdfd
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Wed Jan 26 23:03:38 2011 +0100

    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>

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++){

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list