diff options
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 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); |