decoder/ffmpeg: suppress -Wunused with libavformat<58.6.100

This commit is contained in:
Max Kellermann 2021-05-31 16:49:45 +02:00
parent aa6dac9bd2
commit 82da57b7ce
1 changed files with 1 additions and 0 deletions

View File

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