avformat/dump: don't print streams withing a group twice

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-09-27 19:44:18 -03:00
parent 9d265a9677
commit 01c47dd235
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}