diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-01-27 17:39:26 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-02-03 10:41:20 +0100 |
commit | 80aad8886a5176cb352761a42f04f6c90e6c4ed5 (patch) | |
tree | 2d9d20c757fe79bd6e9ba5e49d21ed95b5a2b7ee /libavformat/dump.c | |
parent | 2367affc2cea32f18a4d309835bed57adb1baa94 (diff) | |
download | ffmpeg-80aad8886a5176cb352761a42f04f6c90e6c4ed5.tar.gz |
av_dump_format: add a heading for chapters
Otherwise the chapters look like a part of the metadata section.
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |