[FFmpeg-devel] [PATCH] libavformat/mov.c Fixed 'Error while filtering: Operation not permitted' when using -stream_loop, a short file with negativ timestamps and only one keyframe Fixes Ticket #6139
Jonas Licht
jonas.licht at fem.tu-ilmenau.de
Sat Jun 3 19:04:59 EEST 2017
---
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
More information about the ffmpeg-devel
mailing list