Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3333:8bec7ae8f0bb | 3334:7a823a401282 |
---|---|
404 chapter_len = ff_get_v(bc); | 404 chapter_len = ff_get_v(bc); |
405 count = ff_get_v(bc); | 405 count = ff_get_v(bc); |
406 | 406 |
407 if(chapter_id && !stream_id_plus1){ | 407 if(chapter_id && !stream_id_plus1){ |
408 int64_t start= chapter_start / nut->time_base_count; | 408 int64_t start= chapter_start / nut->time_base_count; |
409 chapter= ff_new_chapter(s, chapter_id, start, start + chapter_len, NULL); | 409 chapter= ff_new_chapter(s, chapter_id, |
410 chapter->time_base= nut->time_base[chapter_start % nut->time_base_count]; | 410 nut->time_base[chapter_start % nut->time_base_count], |
411 start, start + chapter_len, NULL); | |
411 } | 412 } |
412 | 413 |
413 for(i=0; i<count; i++){ | 414 for(i=0; i<count; i++){ |
414 get_str(bc, name, sizeof(name)); | 415 get_str(bc, name, sizeof(name)); |
415 value= get_s(bc); | 416 value= get_s(bc); |