summaryrefslogtreecommitdiff
path: root/libavformat/matroskadec.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/matroskadec.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/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 7cbf7054f1..6f6caa169d 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);