Commit ed72dae4 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: dont print "Conversion failed" if conversion has never started

Found-by: jamrial
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 2eddf3a6
...@@ -517,7 +517,7 @@ static void ffmpeg_cleanup(int ret) ...@@ -517,7 +517,7 @@ static void ffmpeg_cleanup(int ret)
if (received_sigterm) { if (received_sigterm) {
av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n", av_log(NULL, AV_LOG_INFO, "Received signal %d: terminating.\n",
(int) received_sigterm); (int) received_sigterm);
} else if (ret) { } else if (ret && transcode_init_done) {
av_log(NULL, AV_LOG_INFO, "Conversion failed!\n"); av_log(NULL, AV_LOG_INFO, "Conversion failed!\n");
} }
term_exit(); term_exit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment