]> git.sesse.net Git - ffmpeg/commitdiff
avformat/mov: set AVFMT_SEEK_TO_PTS flag
authorGyan Doshi <ffmpeg@gyani.pro>
Thu, 2 May 2019 09:30:02 +0000 (15:00 +0530)
committerGyan Doshi <ffmpeg@gyani.pro>
Fri, 3 May 2019 04:48:53 +0000 (10:18 +0530)
Ever since 59ad504696, the demuxer expects its seek arg to be PTS
and adjusts internally to search index by DTS.

libavformat/mov.c

index d0347b2970789340a773607b9017b023f346b16c..78f692872bf8948cd0951938421e6a84c3f8133a 100644 (file)
@@ -8006,5 +8006,5 @@ AVInputFormat ff_mov_demuxer = {
     .read_packet    = mov_read_packet,
     .read_close     = mov_read_close,
     .read_seek      = mov_read_seek,
-    .flags          = AVFMT_NO_BYTE_SEEK,
+    .flags          = AVFMT_NO_BYTE_SEEK | AVFMT_SEEK_TO_PTS,
 };