changeset 5406:cef1f2baca9c libavformat

print error message when image2 muxer fail to compute frame filename
author bcoudurier
date Tue, 01 Dec 2009 23:10:32 +0000
parents e1a281c9d852
children b7ef0aa415d0
files img2.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/img2.c	Tue Dec 01 22:56:44 2009 +0000
+++ b/img2.c	Tue Dec 01 23:10:32 2009 +0000
@@ -343,8 +343,10 @@
 
     if (!img->is_pipe) {
         if (av_get_frame_filename(filename, sizeof(filename),
-                                  img->path, img->img_number) < 0 && img->img_number>1)
+                                  img->path, img->img_number) < 0 && img->img_number>1) {
+            av_log(s, AV_LOG_ERROR, "Could not get frame filename from pattern\n");
             return AVERROR(EIO);
+        }
         for(i=0; i<3; i++){
             if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) {
                 av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);