[FFmpeg-cvslog] r22113 - trunk/libavformat/utils.c
cehoyos
subversion
Sun Feb 28 19:37:10 CET 2010
Author: cehoyos
Date: Sun Feb 28 19:37:09 2010
New Revision: 22113
Log:
Print chapter info in dump_format().
Patch by Anton Khirnov, wyskas gmail
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c Sun Feb 28 19:33:33 2010 (r22112)
+++ trunk/libavformat/utils.c Sun Feb 28 19:37:09 2010 (r22113)
@@ -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++) {
More information about the ffmpeg-cvslog
mailing list