[FFmpeg-cvslog] ffmpeg: exit on av_write_trailer failure if exit_on_error is set

Marton Balint git at videolan.org
Thu Oct 22 05:24:09 CEST 2015


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Thu Oct 15 00:08:43 2015 +0200| [f4730a58454283ef1141be4152b53a2b45e5a200] | committer: Marton Balint

ffmpeg: exit on av_write_trailer failure if exit_on_error is set

Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Marton Balint <cus at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f4730a58454283ef1141be4152b53a2b45e5a200
---

 ffmpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 252bc0d..4a6031f 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);
         }
     }
 



More information about the ffmpeg-cvslog mailing list