diff --git a/NEWS b/NEWS index 55cd628da..63ea2db3b 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,10 @@ ver 0.23 (not yet released) * output - snapcast: new plugin +ver 0.22.7 (not yet released) +* decoder + - ffmpeg: fix build problem with FFmpeg 3.4 + ver 0.22.6 (2021/02/16) * fix missing tags on songs in queue diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index e5624c7dd..bf659dc64 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -2,8 +2,8 @@ + android:versionCode="55" + android:versionName="0.22.7"> diff --git a/doc/conf.py b/doc/conf.py index ecbee92c1..4d59eb749 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -38,7 +38,7 @@ author = 'Max Kellermann' # built documents. # # The short X.Y version. -version = '0.22.6' +version = '0.22.7' # The full version, including alpha/beta/rc tags. release = version diff --git a/src/decoder/plugins/FfmpegDecoderPlugin.cxx b/src/decoder/plugins/FfmpegDecoderPlugin.cxx index e82bff450..889062ee6 100644 --- a/src/decoder/plugins/FfmpegDecoderPlugin.cxx +++ b/src/decoder/plugins/FfmpegDecoderPlugin.cxx @@ -464,6 +464,16 @@ FfmpegCheckTag(DecoderClient &client, InputStream *is, client.SubmitTag(is, tag.Commit()); } +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; +#else + return false; +#endif +} + static void FfmpegDecode(DecoderClient &client, InputStream *input, AVFormatContext &format_context) @@ -521,7 +531,7 @@ FfmpegDecode(DecoderClient &client, InputStream *input, client.Ready(audio_format, input ? input->IsSeekable() - : (format_context.ctx_flags & AVFMTCTX_UNSEEKABLE) != 0, + : IsSeekable(format_context), total_time); FfmpegParseMetaData(client, format_context, audio_stream);