From 5406e666a63459d7ea51748763c62977220d5c2e Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 2 Dec 2025 12:55:04 +0000 Subject: [PATCH] Quieten advisory log entries from FFmpeg unless at verbosity 2 or more. --- shairport.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/shairport.c b/shairport.c index f1a9ed47..009e7295 100644 --- a/shairport.c +++ b/shairport.c @@ -44,6 +44,10 @@ #include "config.h" +#ifdef CONFIG_FFMPEG +#include +#endif + #ifdef CONFIG_AIRPLAY_2 #include "ptp-utilities.h" #include @@ -2712,6 +2716,8 @@ int main(int argc, char **argv) { config.output->init(argc - audio_arg, argv + audio_arg); #ifdef CONFIG_FFMPEG + if (debug_level() <= 1) // keep FFmpeg stuff quiet unless verbosity is 2 or more + av_log_set_level(AV_LOG_QUIET); #if LIBAVUTIL_VERSION_MAJOR >= 57