Browse Source

avformat/dump: always print non-tile streams in tile grid groups

This ensures streams in the group that don't belong in the grid are printed with
the default log level.

Signed-off-by: James Almer <jamrial@gmail.com>
James Almer 5 months ago
parent
commit
545de54e3e
1 changed files with 7 additions and 2 deletions
  1. 7 2
      libavformat/dump.c

+ 7 - 2
libavformat/dump.c

@@ -782,11 +782,16 @@ static void dump_stream_group(const AVFormatContext *ic, uint8_t *printed,
         dump_disposition(stg->disposition, AV_LOG_INFO);
         av_log(NULL, AV_LOG_INFO, "\n");
         dump_metadata(NULL, stg->metadata, "    ", AV_LOG_INFO);
-        for (int i = 0; i < stg->nb_streams; i++) {
-            const AVStream *st = stg->streams[i];
+        for (int i = 0; i < tile_grid->nb_tiles; i++) {
+            const AVStream *st = stg->streams[tile_grid->offsets[i].idx];
             dump_stream_format(ic, st->index, i, index, is_output, AV_LOG_VERBOSE);
             printed[st->index] = 1;
         }
+        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);
+        }
         break;
     }
     case AV_STREAM_GROUP_PARAMS_LCEVC: {