public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/alsa-plugins] rawhide: Fixed build with FFmpeg 9
@ 2026-09-03  9:00 Dominik 'Rathann' Mierzejewski
  0 siblings, 0 replies; only message in thread
From: Dominik 'Rathann' Mierzejewski @ 2026-09-03  9:00 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/alsa-plugins
Branch : rawhide
Commit : e63c12681fae2376141556fd109ff6e9d58d579e
Author : Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
Date   : 2026-08-18T13:37:36+02:00
Stats  : +21/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/alsa-plugins/c/e63c12681fae2376141556fd109ff6e9d58d579e?branch=rawhide

Log:
Fixed build with FFmpeg 9

---
diff --git a/alsa-plugins.spec b/alsa-plugins.spec
index 3f41eea..deabbbc 100644
--- a/alsa-plugins.spec
+++ b/alsa-plugins.spec
@@ -10,7 +10,7 @@
 
 Name:           alsa-plugins
 Version:        1.2.12
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        The Advanced Linux Sound Architecture (ALSA) Plugins
 # All packages are LGPL-2.1-or-later with the exception of samplerate
 # which is GPL-2.0-or-later, pph plugin is BSD-3-Clause licensed
@@ -18,6 +18,9 @@ License:        GPL-2.0-or-later and LGPL-2.1-or-later and BSD-3-Clause
 URL:            http://www.alsa-project.org/
 Source0:        ftp://ftp.alsa-project.org/pub/plugins/%{name}-%{version}.tar.bz2
 Patch0:         alsa-git.patch
+# Fix build with FFmpeg 9
+# https://github.com/alsa-project/alsa-plugins/issues/64
+Patch1:         https://gitlab.archlinux.org/archlinux/packaging/packages/alsa-plugins/-/raw/7f250af93b76e9b3d552af509beb8ea1356114d1/ffmpeg9.patch
 
 BuildRequires:  autoconf automake libtool
 BuildRequires:  make
@@ -344,6 +347,9 @@ find %{buildroot} -name "*.la" -delete
 %endif
 
 %changelog
+* Tue Aug 18 2026 Dominik Mierzejewski <dominik@greysector.net> - 1.2.12-9
+- Fixed build with FFmpeg 9
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.12-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/ffmpeg9.patch b/ffmpeg9.patch
new file mode 100644
index 0000000..664f7f0
--- /dev/null
+++ b/ffmpeg9.patch
@@ -0,0 +1,14 @@
+diff -ru alsa-plugins-1.2.12.orig/a52/pcm_a52.c alsa-plugins-1.2.12/a52/pcm_a52.c
+--- alsa-plugins-1.2.12.orig/a52/pcm_a52.c	2026-08-05 11:55:24.343137446 +0200
++++ alsa-plugins-1.2.12/a52/pcm_a52.c	2026-08-05 11:57:53.916162117 +0200
+@@ -1202,7 +1202,9 @@
+ 	rec->io.flags = SND_PCM_IOPLUG_FLAG_BOUNDARY_WA;
+ #endif
+ #ifdef USE_AVCODEC_FRAME
+-	rec->av_format = rec->codec->sample_fmts[0];
++	const enum AVSampleFormat *codec_sample_fmts = NULL;
++	avcodec_get_supported_config(NULL, rec->codec, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0, (const void**)&codec_sample_fmts, NULL);
++	rec->av_format = codec_sample_fmts[0];
+ 	rec->is_planar = av_sample_fmt_is_planar(rec->av_format);
+ #else
+ 	rec->av_format = AV_SAMPLE_FMT_S16;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-03  9:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03  9:00 [rpms/alsa-plugins] rawhide: Fixed build with FFmpeg 9 Dominik 'Rathann' Mierzejewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox