Commit 9c9d8391 for libheif
commit 9c9d839132f8846652ecadceaa8dcf23d1ff3e4c
Author: Joachim Bauch <bauch@struktur.de>
Date: Wed Apr 8 10:23:34 2026 +0200
Add patch to fix building against SVT-AV1 4.1.0
diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc
index 393748e9..3e614908 100644
--- 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