summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-04 07:10:34 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-05-04 07:10:34 +0000
commit92217a61c4e16e9d7f04aac37db59ee63c528d6c (patch)
tree8ee1f31df20798566a4be81ad3122cdba4a47b4f /media-libs
parentade6f2fbcbb4e9423e0518e10b7252f1a9424635 (diff)
downloadbaldeagleos-repo-92217a61c4e16e9d7f04aac37db59ee63c528d6c.tar.gz
baldeagleos-repo-92217a61c4e16e9d7f04aac37db59ee63c528d6c.tar.xz
baldeagleos-repo-92217a61c4e16e9d7f04aac37db59ee63c528d6c.zip
Adding metadata
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/libheif/files/libheif-1.21.2-svt-av1-4.1.patch31
-rw-r--r--media-libs/libheif/libheif-1.21.2.ebuild1
2 files changed, 32 insertions, 0 deletions
diff --git a/media-libs/libheif/files/libheif-1.21.2-svt-av1-4.1.patch b/media-libs/libheif/files/libheif-1.21.2-svt-av1-4.1.patch
new file mode 100644
index 000000000000..4d38606c11ca
--- /dev/null
+++ b/media-libs/libheif/files/libheif-1.21.2-svt-av1-4.1.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/973595
+https://github.com/strukturag/libheif/commit/9c9d839132f8846652ecadceaa8dcf23d1ff3e4c
+
+From 9c9d839132f8846652ecadceaa8dcf23d1ff3e4c Mon Sep 17 00:00:00 2001
+From: Joachim Bauch <bauch@struktur.de>
+Date: Wed, 8 Apr 2026 10:23:34 +0200
+Subject: [PATCH] Add patch to fix building against SVT-AV1 4.1.0
+
+--- a/libheif/plugins/encoder_svt.cc
++++ b/libheif/plugins/encoder_svt.cc
+@@ -838,7 +838,19 @@ static heif_error svt_start_sequence_encoding_intern(void* encoder_raw, const he
+ // svt_config.force_key_frames = true; TODO: this does not seem to work (see all [1])
+
+ #if 1
+-#if SVT_AV1_CHECK_VERSION(4, 0, 0)
++#if SVT_AV1_CHECK_VERSION(4, 1, 0)
++ switch (options->gop_structure) {
++ case heif_sequence_gop_structure_intra_only:
++ //svt_config.pred_structure = 1; // LOW_DELAY
++ break;
++ case heif_sequence_gop_structure_lowdelay:
++ //svt_config.pred_structure = 1; // LOW_DELAY
++ break;
++ case heif_sequence_gop_structure_unrestricted:
++ svt_config.pred_structure = PredStructure::RANDOM_ACCESS;
++ break;
++ }
++#elif SVT_AV1_CHECK_VERSION(4, 0, 0)
+ switch (options->gop_structure) {
+ case heif_sequence_gop_structure_intra_only:
+ //svt_config.pred_structure = 1; // LOW_DELAY
diff --git a/media-libs/libheif/libheif-1.21.2.ebuild b/media-libs/libheif/libheif-1.21.2.ebuild
index ff67bac24ef3..38acab6e3549 100644
--- a/media-libs/libheif/libheif-1.21.2.ebuild
+++ b/media-libs/libheif/libheif-1.21.2.ebuild
@@ -60,6 +60,7 @@ MULTILIB_WRAPPED_HEADERS=(
PATCHES=(
"${FILESDIR}"/libheif-1.21.2-svt-av1-4.patch
+ "${FILESDIR}"/libheif-1.21.2-svt-av1-4.1.patch
)
pkg_pretend() {