changeset 5728:16fec79d308d libavformat

Print chapter info in dump_format(). Patch by Anton Khirnov, wyskas gmail
author cehoyos
date Sun, 28 Feb 2010 18:37:09 +0000
parents 74142991b333
children aef0883e3445
files utils.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sun Feb 28 16:40:17 2010 +0000
+++ b/utils.c	Sun Feb 28 18:37:09 2010 +0000
@@ -3009,6 +3009,14 @@
         }
         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++) {