summaryrefslogtreecommitdiff
path: root/libavformat/nutdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-23 18:15:13 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-23 18:15:13 +0000
commitabd2256dbe1cd10cc8d58d3225acfd1bb207af2a (patch)
tree0e218dc6ef2e583e88f206d7fd2b2cfc2c81f970 /libavformat/nutdec.c
parentf6e76ba476939c4b92da5608d33aa5aebdcbeebc (diff)
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
Diffstat (limited to 'libavformat/nutdec.c')
-rw-r--r--libavformat/nutdec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 7259a36acc..0655d0fdc7 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -406,8 +406,9 @@ static int decode_info_header(NUTContext *nut){
if(chapter_id && !stream_id_plus1){
int64_t start= chapter_start / nut->time_base_count;
- chapter= ff_new_chapter(s, chapter_id, start, start + chapter_len, NULL);
- chapter->time_base= nut->time_base[chapter_start % nut->time_base_count];
+ chapter= ff_new_chapter(s, chapter_id,
+ nut->time_base[chapter_start % nut->time_base_count],
+ start, start + chapter_len, NULL);
}
for(i=0; i<count; i++){