diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2026-03-24 12:00:56 +0000 |
|---|---|---|
| committer | Jan Beich <jbeich@FreeBSD.org> | 2026-03-24 12:13:16 +0000 |
| commit | 2a7e3511954c81b72fc1649a51eae30c20a4e01a (patch) | |
| tree | f316d0f551da193b776f246131ac1b96731e0792 | |
| parent | 441cd2b7a4f5b81f25ac9109b30c646265e7f7fb (diff) | |
graphics/libheif: unbreak after 17339df99b0c
libheif/plugins/encoder_svt.cc:850:37: error: assigning to 'PredStructure' from \
incompatible type 'int'
850 | svt_config.pred_structure = 2; // RANDOM_ACCESS
| ^
Reported by: Tatsuki Makino, mfechner
Regressed by: https://gitlab.com/AOMediaCodec/SVT-AV1/-/commit/3b5e5e8d4dda
Obtained from: upstream (open PR)
| -rw-r--r-- | graphics/libheif/Makefile | 2 | ||||
| -rw-r--r-- | graphics/libheif/files/patch-svt-av1-4.1 | 25 |
2 files changed, 26 insertions, 1 deletions
diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile index 559bcc927bc1..b555fed97540 100644 --- a/graphics/libheif/Makefile +++ b/graphics/libheif/Makefile @@ -1,6 +1,6 @@ PORTNAME= libheif DISTVERSION= 1.21.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= https://github.com/strukturag/${PORTNAME}/releases/download/v${DISTVERSION}/ diff --git a/graphics/libheif/files/patch-svt-av1-4.1 b/graphics/libheif/files/patch-svt-av1-4.1 new file mode 100644 index 000000000000..62f15cbe3e51 --- /dev/null +++ b/graphics/libheif/files/patch-svt-av1-4.1 @@ -0,0 +1,25 @@ +https://github.com/strukturag/libheif/pull/1680#issuecomment-4117142244 + +--- libheif/plugins/encoder_svt.cc.orig 2026-01-16 08:03:07 UTC ++++ libheif/plugins/encoder_svt.cc +@@ -838,7 +838,19 @@ static heif_error svt_start_sequence_encoding_intern(v + // 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 = PredStructure::LOW_DELAY; ++ break; ++ case heif_sequence_gop_structure_lowdelay: ++ //svt_config.pred_structure = PredStructure::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 |
