commit:     6a33786745b6424f8331bfbe7f2ad001e75c2d7b
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  5 08:09:38 2026 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Mar  5 08:44:54 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a337867

media-sound/aqualung: backport ffmpeg8 build fix

Thought to add a upper bound or use ffmpeg-compat given this still
hasn't been fixed and despite planning to stabilize ffmpeg-8 soon, but
the patch is rather trivial and may as well add it straight-to-stable.

Closes: https://bugs.gentoo.org/966100
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 media-sound/aqualung/aqualung-2.0-r1.ebuild           | 3 ++-
 media-sound/aqualung/files/aqualung-2.0-ffmpeg8.patch | 9 +++++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/media-sound/aqualung/aqualung-2.0-r1.ebuild 
b/media-sound/aqualung/aqualung-2.0-r1.ebuild
index 670659403df1..1881ffac43fc 100644
--- a/media-sound/aqualung/aqualung-2.0-r1.ebuild
+++ b/media-sound/aqualung/aqualung-2.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -62,6 +62,7 @@ DEPEND="${RDEPEND}"
 PATCHES=(
        "${FILESDIR}/${PN}-1.1-configure-lua-version.patch"
        "${FILESDIR}/${PN}-2.0-configure.patch"
+       "${FILESDIR}/${P}-ffmpeg8.patch"
 )
 
 pkg_setup() {

diff --git a/media-sound/aqualung/files/aqualung-2.0-ffmpeg8.patch 
b/media-sound/aqualung/files/aqualung-2.0-ffmpeg8.patch
new file mode 100644
index 000000000000..4138adc8363c
--- /dev/null
+++ b/media-sound/aqualung/files/aqualung-2.0-ffmpeg8.patch
@@ -0,0 +1,9 @@
+https://bugs.gentoo.org/966100
+https://github.com/jeremyevans/aqualung/commit/d830ac58984
+--- a/src/decoder/dec_lavc.c
++++ b/src/decoder/dec_lavc.c
+@@ -362,3 +362,3 @@
+ 
+-      avcodec_close(pd->avCodecCtx);
++      avcodec_free_context(&pd->avCodecCtx);
+ 

Reply via email to