]> git.sesse.net Git - ffmpeg/commitdiff
Print chapter info in dump_format().
authorAnton Khirnov <wyskas@gmail.com>
Sun, 28 Feb 2010 18:37:09 +0000 (18:37 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Sun, 28 Feb 2010 18:37:09 +0000 (18:37 +0000)
Patch by Anton Khirnov, wyskas gmail

Originally committed as revision 22113 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/utils.c

index 1fbceea8a758cd0e0c2bfa5ead193edf3406dcb6..2c0f4bbc62bbfef0f5d43ca693dcc181ce3f4399 100644 (file)
@@ -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++) {