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:
Marton Balint 2015-10-15 00:08:43 +02:00
parent a1240c0522
commit f4730a5845
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}
}