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.
This commit is contained in:
wm4 2016-09-27 15:51:34 +02:00
parent b6cbf74518
commit 45c97aea78
1 changed files with 1 additions and 1 deletions

View File

@ -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;