Commit 8948fa70d4 for ffmpeg
commit 8948fa70d41b2316690a6bdca86e507345750fa4
Author: James Almer <jamrial@gmail.com>
Date: Mon Sep 28 17:31:59 2026 -0300
avformat/dump: print IAMF Audio Element streams in info log level
They provide info the group itself can't, like underlying audio codec, which is
nice to have available without having to request verbose logging.
Signed-off-by: James Almer <jamrial@gmail.com>
diff --git a/libavformat/dump.c b/libavformat/dump.c
index 6a1ad91516..bbdec08c97 100644
--- a/libavformat/dump.c
+++ b/libavformat/dump.c
@@ -713,7 +713,8 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed,
av_log(NULL, AV_LOG_INFO, "\n");
for (int k = 0; channel_count > 0 && k < stg->nb_streams; k++) {
AVStream *st = stg->streams[k];
- dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE);
+ int loglevel = printed[st->index] ? AV_LOG_VERBOSE : AV_LOG_INFO;
+ dump_stream_format(ic, st->index, i, index, is_output, loglevel);
printed[st->index] = 1;
channel_count -= st->codecpar->ch_layout.nb_channels;
}