decoder/plugins/FFmpegDecoder: fix IsSeekable()

AVFMTCTX_UNSEEKABLE signals the stream is not seekable
according to FFmpeg source code description:
https://github.com/FFmpeg/FFmpeg/blob/8e98dfc57fd05c49095dd964456a7acbb6da634c/libavformat/avformat.h#L1181
This commit is contained in:
BurroCargado
2022-05-05 16:34:31 +09:00
parent c3d393f214
commit bd840d4638
+1 -1
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;