[FFmpeg-devel] [PATCH] ffmpeg: print an error at the end if convertion failed

Michael Niedermayer michaelni at gmx.at
Mon Mar 31 04:32:35 CEST 2014


Fixes Ticket3477

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 ffmpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 25001f5..d6ef4e9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -516,6 +516,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, "Convertion failed!\n");
     }
     term_exit();
 }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list