[SCM] libav/experimental: print error message when image2 muxer fail to compute frame filename
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:55:19 UTC 2013
The following commit has been merged in the experimental branch:
commit 77df894aed27c7fa1882e56f852f3704998fbe54
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Tue Dec 1 23:10:32 2009 +0000
print error message when image2 muxer fail to compute frame filename
Originally committed as revision 20694 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/img2.c b/libavformat/img2.c
index b5a91cd..9fb8bc4 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);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list