From 45c97aea78de3232721d3392a9d8935457c0ca0e Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 27 Sep 2016 15:51:34 +0200 Subject: stream_lavf: check seekable flag correctly AVIOContext.seekable is actually a bitfield. Currently, it has only AVIO_SEEKABLE_NORMAL defined, but it might be extended with a hint for non-byte seekability. Thus we should check it correctly. --- stream/stream_lavf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') diff --git a/stream/stream_lavf.c b/stream/stream_lavf.c index 67681d3c43..7594175bd3 100644 --- a/stream/stream_lavf.c +++ b/stream/stream_lavf.c @@ -335,7 +335,7 @@ static int open_f(stream_t *stream) } stream->priv = avio; - stream->seekable = avio->seekable; + stream->seekable = avio->seekable & AVIO_SEEKABLE_NORMAL; stream->seek = stream->seekable ? seek : NULL; stream->fill_buffer = fill_buffer; stream->write_buffer = write_buffer; -- cgit v1.2.3