From a8e748eee506f86b345323f532a87ab2050a00f2 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Aug 2012 01:25:57 +0200 Subject: lavf: add seek2any to allow forcing seeking to non keyframes via AVOptions Signed-off-by: Michael Niedermayer --- libavformat/utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/utils.c') diff --git a/libavformat/utils.c b/libavformat/utils.c index 97d65583ee..10d2449d28 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2092,6 +2092,9 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, int if(min_ts > ts || max_ts < ts) return -1; + if(s->seek2any>0) + flags |= AVSEEK_FLAG_ANY; + if (s->iformat->read_seek2) { int ret; ff_read_frame_flush(s); -- cgit v1.2.3