]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Quieten advisory log entries from FFmpeg unless at verbosity 2 or more.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 2 Dec 2025 12:55:04 +0000 (12:55 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Tue, 2 Dec 2025 12:55:04 +0000 (12:55 +0000)
shairport.c

index f1a9ed4769d8c31f39f7ff6a403dca9fc2d7ceaf..009e7295604b690c313e88b05e8966b3c80c7c90 100644 (file)
 
 #include "config.h"
 
+#ifdef CONFIG_FFMPEG
+#include <libavutil/log.h>
+#endif
+
 #ifdef CONFIG_AIRPLAY_2
 #include "ptp-utilities.h"
 #include <gcrypt.h>
@@ -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