From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 2 Dec 2025 12:55:04 +0000 (+0000) Subject: Quieten advisory log entries from FFmpeg unless at verbosity 2 or more. X-Git-Tag: 5.0-post-dev~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5406e666a63459d7ea51748763c62977220d5c2e;p=thirdparty%2Fshairport-sync.git Quieten advisory log entries from FFmpeg unless at verbosity 2 or more. --- 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