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@gentoo.org>
This commit is contained in:
Ionen Wolkens
2026-03-05 03:09:38 -05:00
parent e9d7a5e7c5
commit 6a33786745
2 changed files with 11 additions and 1 deletions
+2 -1
View File
@@ -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() {
@@ -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);