[PATCH 1/3] av_dump_format: add a heading for chapters
Otherwise the chapters look like a part of the metadata section. --- libavformat/dump.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/dump.c b/libavformat/dump.c index fe628010d3..ca73c2810c 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -686,6 +686,8 @@ void av_dump_format(AVFormatContext *ic, int index, av_log(NULL, AV_LOG_INFO, "\n"); } + if (ic->nb_chapters) + av_log(NULL, AV_LOG_INFO, " Chapters:\n"); for (i = 0; i < ic->nb_chapters; i++) { const AVChapter *ch = ic->chapters[i]; av_log(NULL, AV_LOG_INFO, " Chapter #%d:%d: ", index, i); -- 2.28.0
It should be at a deeper level than the chapter ti belongs to. --- libavformat/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index ca73c2810c..5c8e8bc60d 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -696,7 +696,7 @@ void av_dump_format(AVFormatContext *ic, int index, av_log(NULL, AV_LOG_INFO, "end %f\n", ch->end * av_q2d(ch->time_base)); - dump_metadata(NULL, ch->metadata, " "); + dump_metadata(NULL, ch->metadata, " "); } if (ic->nb_programs) { -- 2.28.0
Makes it easier to identify where metadata/chapters end and streams begin. --- libavformat/dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dump.c b/libavformat/dump.c index 5c8e8bc60d..62ef5e9852 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -543,7 +543,7 @@ FF_ENABLE_DEPRECATION_WARNINGS avcodec_string(buf, sizeof(buf), avctx, is_output); avcodec_free_context(&avctx); - av_log(NULL, AV_LOG_INFO, " Stream #%d:%d", index, i); + av_log(NULL, AV_LOG_INFO, " Stream #%d:%d", index, i); /* the pid is an important information, so we display it */ /* XXX: add a generic system */ -- 2.28.0
Nobody had any comments, so pushed -- Anton Khirnov
participants (1)
-
Anton Khirnov