summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2015-10-15 00:08:43 +0200
committerMarton Balint <cus@passwd.hu>2015-10-22 05:07:45 +0200
commitf4730a58454283ef1141be4152b53a2b45e5a200 (patch)
tree0235195b27923f15e809a5bae291341e9960bebf /ffmpeg.c
parenta1240c0522d10b937ef5fb88c2134452ae352fb5 (diff)
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 252bc0df58..4a6031f16f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);
}
}