diff options
author | Anton Khirnov <wyskas@gmail.com> | 2010-02-28 18:37:09 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-02-28 18:37:09 +0000 |
commit | 82f50f820e608f1798230c168d6e98fb32dd39d1 (patch) | |
tree | dc1f6bf5f0aacaae0899b847dcda3c86bfc55a3e /libavformat/utils.c | |
parent | 7c994c366c311ba7799aef80efaf80e265c0c329 (diff) | |
download | ffmpeg-82f50f820e608f1798230c168d6e98fb32dd39d1.tar.gz |
Print chapter info in dump_format().
Patch by Anton Khirnov, wyskas gmail
Originally committed as revision 22113 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 1fbceea8a7..2c0f4bbc62 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -3009,6 +3009,14 @@ void dump_format(AVFormatContext *ic, } av_log(NULL, AV_LOG_INFO, "\n"); } + for (i = 0; i < ic->nb_chapters; i++) { + AVChapter *ch = ic->chapters[i]; + av_log(NULL, AV_LOG_INFO, " Chapter #%d.%d: ", index, i); + av_log(NULL, AV_LOG_INFO, "start %f, ", ch->start * av_q2d(ch->time_base)); + av_log(NULL, AV_LOG_INFO, "end %f\n", ch->end * av_q2d(ch->time_base)); + + dump_metadata(NULL, ch->metadata, " "); + } if(ic->nb_programs) { int j, k, total = 0; for(j=0; j<ic->nb_programs; j++) { |