# HG changeset patch # User bcoudurier # Date 1259709032 0 # Node ID cef1f2baca9c1cde27e0d10be7769736eab311a0 # Parent e1a281c9d852eef0e97c3c63d794d1477a8553ff print error message when image2 muxer fail to compute frame filename diff -r e1a281c9d852 -r cef1f2baca9c img2.c --- 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);