From 01c47dd235aea6bfb78a260494b47cf56183e981 Mon Sep 17 00:00:00 2001 From: James Almer Date: Fri, 27 Sep 2024 19:44:18 -0300 Subject: [PATCH] avformat/dump: don't print streams withing a group twice Signed-off-by: James Almer --- libavformat/dump.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index bc25e4dd0a..a8e968fd86 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -789,8 +789,10 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed, } for (int i = 0; i < stg->nb_streams; i++) { const AVStream *st = stg->streams[i]; - if (!printed[st->index]) - dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE); + if (!printed[st->index]) { + dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_INFO); + printed[st->index] = 1; + } } break; }