audacious-plugins: Fix build with ffmpeg 5.0
This commit is contained in:
parent
d7cb9812b6
commit
b3b0137a93
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Plugins for Audacious"
|
||||
TERMUX_PKG_LICENSE="GPL-2.0"
|
||||
TERMUX_PKG_MAINTAINER="Simeon Huang <symeon@librehat.com>"
|
||||
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"
|
||||
|
@ -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<AVInputFormat *> (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 *> (avcodec_find_decoder (stream->codecpar->codec_id));
|
||||
|
||||
if (codec)
|
||||
{
|
Loading…
Reference in New Issue
Block a user