better failure message for img2enc
authorrogerdpack <rogerpack2005@gmail.com>
Thu, 20 Dec 2012 16:53:30 +0000 (09:53 -0700)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Dec 2012 20:18:12 +0000 (21:18 +0100)
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/img2enc.c

index 9621d3c..8f1bb3d 100644 (file)
@@ -78,7 +78,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
         if (av_get_frame_filename(filename, sizeof(filename),
                                   img->path, img->img_number) < 0 && img->img_number > 1 && !img->updatefirst) {
             av_log(s, AV_LOG_ERROR,
-                   "Could not get frame filename number %d from pattern '%s'\n",
+                   "Could not get frame filename number %d from pattern '%s' (either set updatefirst or use a pattern like %03d within the filename pattern)\n",
                    img->img_number, img->path);
             return AVERROR(EINVAL);
         }