Date: Tue, 24 Mar 2026 12:13:47 +0000 From: Jan Beich <jbeich@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 2a7e3511954c - main - graphics/libheif: unbreak after 17339df99b0c Message-ID: <69c27ffb.3e4de.76b2ce8e@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=2a7e3511954c81b72fc1649a51eae30c20a4e01a commit 2a7e3511954c81b72fc1649a51eae30c20a4e01a Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2026-03-24 12:00:56 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2026-03-24 12:13:16 +0000 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) --- graphics/libheif/Makefile | 2 +- graphics/libheif/files/patch-svt-av1-4.1 | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) 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_DELAYhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69c27ffb.3e4de.76b2ce8e>
