[FFmpeg-cvslog] av_dump_format: add a heading for chapters

Anton Khirnov git at videolan.org
Wed Feb 3 11:46:48 EET 2021


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jan 27 17:39:26 2021 +0100| [80aad8886a5176cb352761a42f04f6c90e6c4ed5] | committer: Anton Khirnov

av_dump_format: add a heading for chapters

Otherwise the chapters look like a part of the metadata section.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=80aad8886a5176cb352761a42f04f6c90e6c4ed5
---

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



More information about the ffmpeg-cvslog mailing list