[FFmpeg-cvslog] ffmpeg: print an error at the end if conversion failed

Michael Niedermayer git at videolan.org
Mon May 5 00:41:57 CEST 2014


ffmpeg | branch: release/2.2 | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 31 04:31:28 2014 +0200| [9d0ff6436ef748f9f81eb5e4cfe93c34461a9997] | committer: Michael Niedermayer

ffmpeg: print an error at the end if conversion failed

Fixes Ticket3477

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit fed0acebade8d27c428da5cad483cd6a5b64b354)

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index 1d3cfd4..5caac1f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -514,6 +514,8 @@ static void ffmpeg_cleanup(int ret)
     if (received_sigterm) {
         av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
                (int) received_sigterm);
+    } else if (ret) {
+        av_log(NULL, AV_LOG_INFO, "Conversion failed!\n");
     }
     term_exit();
 }



More information about the ffmpeg-cvslog mailing list