---
libavformat/mov.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3845e63b53..afc2efe063 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -6547,9 +6547,9 @@ static int mov_seek_stream(AVFormatContext *s, AVStream
*st, int64_t timestamp,
{
MOVStreamContext *sc = st->priv_data;
int sample, time_sample;
- int i;
-
- int ret = mov_seek_fragment(s, st, timestamp);
+ int i,ret;
+ timestamp -= sc->time_offset;
+ ret = mov_seek_fragment(s, st, timestamp);
if (ret < 0)
return ret;
--
2.13.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel