diff options
author | James Almer <jamrial@gmail.com> | 2025-01-01 13:23:23 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-01-03 10:34:03 -0300 |
commit | 4bf784c0e5615c3f934e677d5de093a8be7da7ae (patch) | |
tree | c62e73751ad241054595a00067bc108aaa6fea76 /libavformat/dump.c | |
parent | c187dd88de7d13762d0d385c1fa19c61ea08a398 (diff) | |
download | ffmpeg-4bf784c0e5615c3f934e677d5de093a8be7da7ae.tar.gz |
avformat/dump: print only the actual streams in a tile grid group
The amount of tiles does not necessarely need to match the amount of streams.
Fixes ticket #11389.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index b7125a652f..30102f917e 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -788,8 +788,8 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed, dump_sidedata(NULL, tile_grid->coded_side_data, tile_grid->nb_coded_side_data, tile_grid->width, tile_grid->height, (AVRational) {0,1}, " ", AV_LOG_INFO); - for (int i = 0; i < tile_grid->nb_tiles; i++) { - const AVStream *st = stg->streams[tile_grid->offsets[i].idx]; + for (int i = 0; i < stg->nb_streams; i++) { + const AVStream *st = stg->streams[i]; dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE); printed[st->index] = 1; } |