public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
To: git-commits@fedoraproject.org
Subject: [rpms/alsa-plugins] f45: Fixed build with FFmpeg 9
Date: Thu, 17 Sep 2026 12:22:49 GMT	[thread overview]
Message-ID: <178964776924.1.4883958777005505014.rpms-alsa-plugins-e63c12681fae@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/alsa-plugins
Branch : f45
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=f45

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;

                 reply	other threads:[~2026-09-17 12:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178964776924.1.4883958777005505014.rpms-alsa-plugins-e63c12681fae@fedoraproject.org \
    --to=dominik@greysector.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox