diff utils.c @ 3334:7a823a401282 libavformat

Pass time_base as argument to new_chapter() as well. This fixes the wrong timebase the matroska demuxer had after my previous commits. Maybe we should reduce new_chapter() to just (AVFormatContext, int id) ?
author michael
date Fri, 23 May 2008 18:15:13 +0000
parents 74e2cfc79cda
children ee6e41ad0c69
line wrap: on
line diff
--- a/utils.c	Fri May 23 17:56:45 2008 +0000
+++ b/utils.c	Fri May 23 18:15:13 2008 +0000
@@ -2246,7 +2246,7 @@
     }
 }
 
-AVChapter *ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end, const char *title)
+AVChapter *ff_new_chapter(AVFormatContext *s, int id, AVRational time_base, int64_t start, int64_t end, const char *title)
 {
     AVChapter *chapter = NULL;
     int i;
@@ -2265,6 +2265,7 @@
         av_free(chapter->title);
     chapter->title = av_strdup(title);
     chapter->id    = id;
+    chapter->time_base= time_base;
     chapter->start = start;
     chapter->end   = end;