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

ffmpeg: exit on av_write_trailer failure if exit_on_error is set

Reviewed-by: NMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: NMarton Balint <cus@passwd.hu>
上级 a1240c05
......@@ -4106,6 +4106,8 @@ static int transcode(void)
os = output_files[i]->ctx;
if ((ret = av_write_trailer(os)) < 0) {
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
if (exit_on_error)
exit_program(1);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册