diff mbox series

[FFmpeg-devel,1/3] av_dump_format: add a heading for chapters

Message ID 20210127165104.30802-1-anton@khirnov.net
State Accepted
Commit 80aad8886a5176cb352761a42f04f6c90e6c4ed5
Headers show
Series [FFmpeg-devel,1/3] av_dump_format: add a heading for chapters | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Anton Khirnov Jan. 27, 2021, 4:51 p.m. UTC
Otherwise the chapters look like a part of the metadata section.
---
 libavformat/dump.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Anton Khirnov Feb. 3, 2021, 9:47 a.m. UTC | #1
Nobody had any comments, so pushed
diff mbox series

Patch

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);