diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-05-23 18:15:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-05-23 18:15:13 +0000 |
commit | abd2256dbe1cd10cc8d58d3225acfd1bb207af2a (patch) | |
tree | 0e218dc6ef2e583e88f206d7fd2b2cfc2c81f970 /libavformat/matroskadec.c | |
parent | f6e76ba476939c4b92da5608d33aa5aebdcbeebc (diff) | |
download | ffmpeg-streaming-abd2256dbe1cd10cc8d58d3225acfd1bb207af2a.zip ffmpeg-streaming-abd2256dbe1cd10cc8d58d3225acfd1bb207af2a.tar.gz |
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/matroskadec.c')
-rw-r--r-- | libavformat/matroskadec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 7cbf705..6f6caa1 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2254,10 +2254,7 @@ matroska_parse_chapters(AVFormatContext *s) } if (start != AV_NOPTS_VALUE && uid != -1) { - start = start * AV_TIME_BASE / 1000000000; - if (end != AV_NOPTS_VALUE) - end = end * AV_TIME_BASE / 1000000000; - if(!ff_new_chapter(s, uid, start, end, title)) + if(!ff_new_chapter(s, uid, (AVRational){1, 1000000000}, start, end, title)) res= AVERROR(ENOMEM); } av_free(title); |