mirror of https://github.com/mpv-player/mpv
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:
parent
b6cbf74518
commit
45c97aea78
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue