diff options
author | Marton Balint <cus@passwd.hu> | 2015-10-15 00:08:43 +0200 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2015-10-22 05:07:45 +0200 |
commit | f4730a58454283ef1141be4152b53a2b45e5a200 (patch) | |
tree | 0235195b27923f15e809a5bae291341e9960bebf /ffmpeg.c | |
parent | a1240c0522d10b937ef5fb88c2134452ae352fb5 (diff) | |
download | ffmpeg-f4730a58454283ef1141be4152b53a2b45e5a200.tar.gz |
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>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } } |