Source: libheif Version: 1.17.6-1 Severity: important Tags: ftbfs patch Forwarded: https://github.com/strukturag/libheif/pull/1146
Dear maintainer, libheif fails to build with svt-av1 2.1.0+dfsg-1 in experimental. This is already fixed upstream [1] with the attached patch. Could you please apply this patch? Thank you. Best regards, Dylan [1] https://github.com/strukturag/libheif/commit/a911b26
From a911b26a902c5f89fee2dc20ac4dfaafcb8144ec Mon Sep 17 00:00:00 2001 From: Andrey Semashev <lasti...@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:46:48 +0300 Subject: [PATCH] Fix compilation with libsvtav1 2.0.0. --- libheif/plugins/encoder_svt.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libheif/plugins/encoder_svt.cc b/libheif/plugins/encoder_svt.cc index 4597d7b8fc..1ff3bce2d5 100644 --- a/libheif/plugins/encoder_svt.cc +++ b/libheif/plugins/encoder_svt.cc @@ -646,7 +646,7 @@ struct heif_error svt_encode_image(void* encoder_raw, const struct heif_image* i if (nclx) { svt_config.color_description_present_flag = true; -#if SVT_AV1_VERSION_MAJOR == 1 +#if SVT_AV1_VERSION_MAJOR >= 1 svt_config.color_primaries = static_cast<EbColorPrimaries>(nclx->color_primaries); svt_config.transfer_characteristics = static_cast<EbTransferCharacteristics>(nclx->transfer_characteristics); svt_config.matrix_coefficients = static_cast<EbMatrixCoefficients>(nclx->matrix_coefficients);