mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/libheif: Fix build with libsvtav1 2.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
07c545f0ca
commit
eaf8abd2cd
2 changed files with 25 additions and 1 deletions
|
@ -0,0 +1,22 @@
|
|||
From a911b26a902c5f89fee2dc20ac4dfaafcb8144ec Mon Sep 17 00:00:00 2001
|
||||
From: Andrey Semashev <Lastique@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);
|
|
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
|
|||
|
||||
PRGNAM=libheif
|
||||
VERSION=${VERSION:-1.17.6}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -76,6 +76,8 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
|
||||
patch -p1 < $CWD/a911b26a902c5f89fee2dc20ac4dfaafcb8144ec.patch
|
||||
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake \
|
||||
|
|
Loading…
Reference in a new issue