]> git.sesse.net Git - ffmpeg/commitdiff
av_dump_format: add a heading for chapters
authorAnton Khirnov <anton@khirnov.net>
Wed, 27 Jan 2021 16:39:26 +0000 (17:39 +0100)
committerAnton Khirnov <anton@khirnov.net>
Wed, 3 Feb 2021 09:41:20 +0000 (10:41 +0100)
Otherwise the chapters look like a part of the metadata section.

libavformat/dump.c

index fe628010d3322a64b737f815a4058f6eee6e10d8..ca73c2810c60f645e6d0a3864da02829b2afc660 100644 (file)
@@ -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);