aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/dump.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-09-27 19:44:18 -0300
committerJames Almer <jamrial@gmail.com>2024-09-27 19:44:18 -0300
commit01c47dd235aea6bfb78a260494b47cf56183e981 (patch)
treeeae4b37aa888a8b7f23e553bcbd99409230d7d9e /libavformat/dump.c
parent9d265a9677e6db314228c22c4bbedb4519383850 (diff)
downloadffmpeg-01c47dd235aea6bfb78a260494b47cf56183e981.tar.gz
avformat/dump: don't print streams withing a group twice
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r--libavformat/dump.c6
1 files 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;
}