[FFmpeg-devel] [PATCH] avformat/mov: set AVFMT_SEEK_TO_PTS flag
Gyan
ffmpeg at gyani.pro
Thu May 2 13:23:08 EEST 2019
FATE passes. Checked that transcoded output remains the same whereas in
copy mode, seek to a video KF using ffmpeg cli returns the desired KF
and not the earlier KF, as happens at present.
Gyan
-------------- next part --------------
From 029a75fe27e576cd0d04c8bdd0707d7903250bac Mon Sep 17 00:00:00 2001
From: Gyan Doshi <ffmpeg at gyani.pro>
Date: Thu, 2 May 2019 15:00:02 +0530
Subject: [PATCH] avformat/mov: set AVFMT_SEEK_TO_PTS flag
Ever since 59ad504696, the demuxer expects its seek arg to be PTS
and adjusts internally to search index by DTS.
---
libavformat/mov.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index d0347b2970..78f692872b 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -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,
};
--
2.21.0
More information about the ffmpeg-devel
mailing list