[FFmpeg-cvslog] r20694 - trunk/libavformat/img2.c
bcoudurier
subversion
Wed Dec 2 00:10:32 CET 2009
Author: bcoudurier
Date: Wed Dec 2 00:10:32 2009
New Revision: 20694
Log:
print error message when image2 muxer fail to compute frame filename
Modified:
trunk/libavformat/img2.c
Modified: trunk/libavformat/img2.c
==============================================================================
--- trunk/libavformat/img2.c Tue Dec 1 23:56:44 2009 (r20693)
+++ trunk/libavformat/img2.c Wed Dec 2 00:10:32 2009 (r20694)
@@ -343,8 +343,10 @@ static int img_write_packet(AVFormatCont
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);
More information about the ffmpeg-cvslog
mailing list