ffmpeg: dont print "Conversion failed" if conversion has never started
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 21:45:22 +0000 (23:45 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 29 Apr 2014 21:45:22 +0000 (23:45 +0200)
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 6f90955..e7b4290 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -517,7 +517,7 @@ 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) {
+    } else if (ret && transcode_init_done) {
         av_log(NULL, AV_LOG_INFO, "Conversion failed!\n");
     }
     term_exit();