Demote FFmpeg fatal errors

Fixes #1849
This commit is contained in:
Cameron Gutman
2023-12-29 21:20:13 -06:00
parent eca26e664b
commit 0d7811ad43
+3 -4
View File
@@ -517,10 +517,9 @@ main(int argc, char *argv[]) {
char buffer[1024]; char buffer[1024];
av_log_format_line(ptr, level, fmt, vl, buffer, sizeof(buffer), &print_prefix); av_log_format_line(ptr, level, fmt, vl, buffer, sizeof(buffer), &print_prefix);
if (level <= AV_LOG_FATAL) { if (level <= AV_LOG_ERROR) {
BOOST_LOG(fatal) << buffer; // 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.
else if (level <= AV_LOG_ERROR) {
BOOST_LOG(error) << buffer; BOOST_LOG(error) << buffer;
} }
else if (level <= AV_LOG_WARNING) { else if (level <= AV_LOG_WARNING) {