[packages/alsa-plugins] - rel 4, build fix for ffmpeg 9
baggins
baggins at pld-linux.org
Thu Oct 22 21:34:17 CEST 2026
commit fdfe5ce8bbc0305fa3614b6c686192a546e4fe20
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Thu Oct 22 21:33:43 2026 +0200
- rel 4, build fix for ffmpeg 9
alsa-plugins.spec | 4 +++-
ffmpeg9.patch | 41 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
---
diff --git a/alsa-plugins.spec b/alsa-plugins.spec
index 7ea4d5e..7197376 100644
--- a/alsa-plugins.spec
+++ b/alsa-plugins.spec
@@ -7,12 +7,13 @@ Summary: Advanced Linux Sound Architecture - plugins
Summary(pl.UTF-8): Advanced Linux Sound Architecture - wtyczki
Name: alsa-plugins
Version: 1.2.12
-Release: 3
+Release: 4
License: LGPL v2.1+
Group: Libraries
Source0: ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
# Source0-md5: 71fce75baa38efab4e32e40db0a33716
Source1: %{name}-pulse.conf
+Patch0: ffmpeg9.patch
URL: http://www.alsa-project.org/
BuildRequires: alsa-lib-devel >= 1.1.6
BuildRequires: autoconf >= 2.59
@@ -216,6 +217,7 @@ Wtyczka wejścia-wyjścia PCM usb_stream dla systemu ALSA.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/ffmpeg9.patch b/ffmpeg9.patch
new file mode 100644
index 0000000..edfc702
--- /dev/null
+++ b/ffmpeg9.patch
@@ -0,0 +1,41 @@
+From eef274dbc890a21c2400c8bffdcbda243782627d Mon Sep 17 00:00:00 2001
+From: Jaroslav Kysela <perex at perex.cz>
+Date: Thu, 3 Sep 2026 14:38:05 +0200
+Subject: [PATCH] a52 plugin: AVSampleFormat fix for FFMPEG 9
+
+Fixes: https://github.com/alsa-project/alsa-plugins/issues/64
+Signed-off-by: Jaroslav Kysela <perex at perex.cz>
+---
+ a52/pcm_a52.c | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+
+diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c
+index cd56abb..bbd4f54 100644
+--- a/a52/pcm_a52.c
++++ b/a52/pcm_a52.c
+@@ -1202,7 +1202,22 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52)
+ rec->io.flags = SND_PCM_IOPLUG_FLAG_BOUNDARY_WA;
+ #endif
+ #ifdef USE_AVCODEC_FRAME
++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(61, 13, 100)
++ {
++ const enum AVSampleFormat *sample_fmts = NULL;
++ err = avcodec_get_supported_config(NULL, rec->codec,
++ AV_CODEC_CONFIG_SAMPLE_FORMAT,
++ 0, (const void **)&sample_fmts,
++ NULL);
++ if (err < 0 || !sample_fmts) {
++ err = -EINVAL;
++ goto error;
++ }
++ rec->av_format = sample_fmts[0];
++ }
++#else
+ rec->av_format = rec->codec->sample_fmts[0];
++#endif
+ rec->is_planar = av_sample_fmt_is_planar(rec->av_format);
+ #else
+ rec->av_format = AV_SAMPLE_FMT_S16;
+--
+2.55.0
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/alsa-plugins.git/commitdiff/fdfe5ce8bbc0305fa3614b6c686192a546e4fe20
More information about the pld-cvs-commit
mailing list