The amount of tiles does not necessarely need to match the amount of streams. Fixes ticket #11389.
Unified · Split
| @@ -788,8 +788,8 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed, · 787 unmodified lines | ||
| 788 | 788 | dump_sidedata(NULL, tile_grid->coded_side_data, tile_grid->nb_coded_side_data, |
| 789 | 789 | tile_grid->width, tile_grid->height, (AVRational) {0,1}, |
| 790 | 790 | " ", AV_LOG_INFO); |
| 791 | − for (int i = 0; i < tile_grid->nb_tiles; i++) { | |
| 792 | − const AVStream *st = stg->streams[tile_grid->offsets[i].idx]; | |
| 791 | + for (int i = 0; i < stg->nb_streams; i++) { | |
| 792 | + const AVStream *st = stg->streams[i]; | |
| 793 | 793 | dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE); |
| 794 | 794 | printed[st->index] = 1; |
| 795 | 795 | } |