aboutsummaryrefslogtreecommitdiffhomepage
path: root/stream
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2016-09-27 15:51:34 +0200
committerGravatar wm4 <wm4@nowhere>2016-09-27 15:51:34 +0200
commit45c97aea78de3232721d3392a9d8935457c0ca0e (patch)
treea26fce250d8a98f8b69ebc39711e2d56862cd57f /stream
parentb6cbf74518a751e0982c2c514f16c96b5736dbad (diff)
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.
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_lavf.c2
1 files changed, 1 insertions, 1 deletions
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;