Commit 77df894a authored by Baptiste Coudurier's avatar Baptiste Coudurier

print error message when image2 muxer fail to compute frame filename

Originally committed as revision 20694 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6659b32a
...@@ -343,8 +343,10 @@ static int img_write_packet(AVFormatContext *s, AVPacket *pkt) ...@@ -343,8 +343,10 @@ static int img_write_packet(AVFormatContext *s, AVPacket *pkt)
if (!img->is_pipe) { if (!img->is_pipe) {
if (av_get_frame_filename(filename, sizeof(filename), 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); return AVERROR(EIO);
}
for(i=0; i<3; i++){ for(i=0; i<3; i++){
if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) { if (url_fopen(&pb[i], filename, URL_WRONLY) < 0) {
av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename); av_log(s, AV_LOG_ERROR, "Could not open file : %s\n",filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment