From abd2256dbe1cd10cc8d58d3225acfd1bb207af2a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 23 May 2008 18:15:13 +0000 Subject: 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) ? Originally committed as revision 13266 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index e37577dbd7..7faedccdcb 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2246,7 +2246,7 @@ void av_set_program_name(AVProgram *program, char *provider_name, char *name) } } -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 @@ AVChapter *ff_new_chapter(AVFormatContext *s, int id, int64_t start, int64_t end av_free(chapter->title); chapter->title = av_strdup(title); chapter->id = id; + chapter->time_base= time_base; chapter->start = start; chapter->end = end; -- cgit v1.2.3