diff nutdec.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 f89173ea4c5e
children 7b34cd9dfe85
line wrap: on
line diff
--- a/nutdec.c	Fri May 23 17:56:45 2008 +0000
+++ b/nutdec.c	Fri May 23 18:15:13 2008 +0000
@@ -406,8 +406,9 @@
 
     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++){