提交 a1240c05 编写于 作者: M Marton Balint

ffmpeg: log failed av_write_trailer

Reviewed-by: NMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: NMarton Balint <cus@passwd.hu>
上级 ab5f43e6
......@@ -4104,7 +4104,9 @@ static int transcode(void)
/* write the trailer if needed and close file */
for (i = 0; i < nb_output_files; i++) {
os = output_files[i]->ctx;
av_write_trailer(os);
if ((ret = av_write_trailer(os)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
}
}
/* dump report by using the first video and audio streams */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册