ffmpeg | branch: master | Marton Balint <c...@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 <mich...@niedermayer.cc>
Signed-off-by: Marton Balint <c...@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);
         }
     }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to