diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-08-06 01:25:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-07 21:54:41 +0100 |
commit | a8e748eee506f86b345323f532a87ab2050a00f2 (patch) | |
tree | 04229fc51c55a1a490c6c2ab94a8ad526b6194d0 /libavformat/utils.c | |
parent | 7c00d853a65884870e2a7a916197d87c125ed630 (diff) | |
download | ffmpeg-a8e748eee506f86b345323f532a87ab2050a00f2.tar.gz |
lavf: add seek2any to allow forcing seeking to non keyframes via AVOptions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |