decoder/ffmpeg: fix build problem with FFmpeg 3.4
Regression by commit a22d1c88d7
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1097
This commit is contained in:
2
NEWS
2
NEWS
@@ -1,4 +1,6 @@
|
|||||||
ver 0.22.7 (not yet released)
|
ver 0.22.7 (not yet released)
|
||||||
|
* decoder
|
||||||
|
- ffmpeg: fix build problem with FFmpeg 3.4
|
||||||
|
|
||||||
ver 0.22.6 (2021/02/16)
|
ver 0.22.6 (2021/02/16)
|
||||||
* fix missing tags on songs in queue
|
* fix missing tags on songs in queue
|
||||||
|
@@ -467,7 +467,11 @@ FfmpegCheckTag(DecoderClient &client, InputStream *is,
|
|||||||
static bool
|
static bool
|
||||||
IsSeekable(const AVFormatContext &format_context) noexcept
|
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
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Reference in New Issue
Block a user