[FFmpeg-cvslog] avformat/dump: always print non-tile streams in tile grid groups
James Almer
git at videolan.org
Fri Sep 27 20:39:58 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Thu Sep 26 14:18:05 2024 -0300| [545de54e3e0ce5ad1285aa5e111e6657ad803f79] | committer: James Almer
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=545de54e3e0ce5ad1285aa5e111e6657ad803f79
---
libavformat/dump.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/libavformat/dump.c b/libavformat/dump.c
index f20c2c4953..0440a7a405 100644
--- a/libavformat/dump.c
+++ b/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: {
More information about the ffmpeg-cvslog
mailing list