diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-12-01 23:10:32 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-12-01 23:10:32 +0000 |
commit | 77df894aed27c7fa1882e56f852f3704998fbe54 (patch) | |
tree | 42335bac41d4aed944f53698d637c9c8eb8aa954 /libavformat/img2.c | |
parent | 6659b32ab290e502807cf918697379774cee767b (diff) | |
download | ffmpeg-77df894aed27c7fa1882e56f852f3704998fbe54.tar.gz |
print error message when image2 muxer fail to compute frame filename
Originally committed as revision 20694 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/img2.c')
-rw-r--r-- | libavformat/img2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/img2.c b/libavformat/img2.c index b5a91cd73b..9fb8bc4cbf 100644 --- a/libavformat/img2.c +++ b/libavformat/img2.c @@ -343,8 +343,10 @@ static int img_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) + 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); |