decoder/plugins/FFmpegDecoder: fix IsSeekable()

AVFMTCTX_UNSEEKABLE signals the stream is not seekable
according to FFmpeg source code description:
8e98dfc57f/libavformat/avformat.h (L1181)
This commit is contained in:
BurroCargado 2022-05-05 16:34:31 +09:00
parent c3d393f214
commit bd840d4638
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ static bool
IsSeekable(const AVFormatContext &format_context) noexcept
{
#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(58, 6, 100)
return (format_context.ctx_flags & AVFMTCTX_UNSEEKABLE) != 0;
return (format_context.ctx_flags & AVFMTCTX_UNSEEKABLE) == 0;
#else
(void)format_context;
return false;