From b3b0137a9362ad4a16d71d8888ce7a807b507b9c Mon Sep 17 00:00:00 2001 From: Tee KOBAYASHI Date: Tue, 18 Jan 2022 15:12:15 +0900 Subject: [PATCH] audacious-plugins: Fix build with ffmpeg 5.0 --- x11-packages/audacious-plugins/build.sh | 2 +- .../src-ffaudio-ffaudio-core.cc.patch | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 x11-packages/audacious-plugins/src-ffaudio-ffaudio-core.cc.patch diff --git a/x11-packages/audacious-plugins/build.sh b/x11-packages/audacious-plugins/build.sh index fc57cefe7..6d608f350 100644 --- a/x11-packages/audacious-plugins/build.sh +++ b/x11-packages/audacious-plugins/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Plugins for Audacious" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="Simeon Huang " TERMUX_PKG_VERSION=4.1 -TERMUX_PKG_REVISION=4 +TERMUX_PKG_REVISION=5 TERMUX_PKG_SRCURL=https://distfiles.audacious-media-player.org/audacious-plugins-${TERMUX_PKG_VERSION}.tar.bz2 TERMUX_PKG_SHA256=dad6fc625055349d589e36e8e5c8ae7dfafcddfe96894806509696d82bb61d4c TERMUX_PKG_DEPENDS="audacious, qt5-qtbase, qt5-qtmultimedia, qt5-qtx11extras, zlib, libflac, libcue, libcurl, mpg123, libogg, libsndfile, libsoxr, libvorbis, libxrender, libxcomposite, ffmpeg" diff --git a/x11-packages/audacious-plugins/src-ffaudio-ffaudio-core.cc.patch b/x11-packages/audacious-plugins/src-ffaudio-ffaudio-core.cc.patch new file mode 100644 index 000000000..3978307cd --- /dev/null +++ b/x11-packages/audacious-plugins/src-ffaudio-ffaudio-core.cc.patch @@ -0,0 +1,20 @@ +--- a/src/ffaudio/ffaudio-core.cc ++++ b/src/ffaudio/ffaudio-core.cc +@@ -288,7 +288,7 @@ + AVProbeData d = {name, buf, filled}; + score = target; + +- f = av_probe_input_format2 (& d, true, & score); ++ f = const_cast (av_probe_input_format2 (& d, true, & score)); + if (f) + break; + +@@ -361,7 +361,7 @@ + #endif + if (stream && stream->codecpar && stream->codecpar->codec_type == AVMEDIA_TYPE_AUDIO) + { +- AVCodec * codec = avcodec_find_decoder (stream->codecpar->codec_id); ++ AVCodec * codec = const_cast (avcodec_find_decoder (stream->codecpar->codec_id)); + + if (codec) + {