From 0d7811ad431baafb58cca2e1cb16598ae1de9183 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 29 Dec 2023 21:20:13 -0600 Subject: [PATCH] Demote FFmpeg fatal errors Fixes #1849 --- src/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 6cd3545e..45febf70 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -517,10 +517,9 @@ main(int argc, char *argv[]) { char buffer[1024]; av_log_format_line(ptr, level, fmt, vl, buffer, sizeof(buffer), &print_prefix); - if (level <= AV_LOG_FATAL) { - BOOST_LOG(fatal) << buffer; - } - else if (level <= AV_LOG_ERROR) { + if (level <= AV_LOG_ERROR) { + // We print AV_LOG_FATAL at the error level. FFmpeg prints things as fatal that + // are expected in some cases, such as lack of codec support or similar things. BOOST_LOG(error) << buffer; } else if (level <= AV_LOG_WARNING) {