ffmpeg: exit on av_write_trailer failure if exit_on_error is set
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
parent
a1240c0522
commit
f4730a5845
2
ffmpeg.c
2
ffmpeg.c
@ -4106,6 +4106,8 @@ static int transcode(void)
|
|||||||
os = output_files[i]->ctx;
|
os = output_files[i]->ctx;
|
||||||
if ((ret = av_write_trailer(os)) < 0) {
|
if ((ret = av_write_trailer(os)) < 0) {
|
||||||
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
|
av_log(NULL, AV_LOG_ERROR, "Error writing trailer of %s: %s", os->filename, av_err2str(ret));
|
||||||
|
if (exit_on_error)
|
||||||
|
exit_program(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user