Commit bd840d46 authored by BurroCargado's avatar BurroCargado

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
parent c3d393f2
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment