rebuilt by autoport with build requirements: libsvt-av1-devel>=2.0.0-1mamba [release 1.17.6-2mamba;Fri May 03 2024]

This commit is contained in:
Automatic Build System 2024-05-07 11:11:02 +02:00
parent 851ce16b49
commit 6383e6602b
2 changed files with 30 additions and 1 deletions

View File

@ -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);

View File

@ -1,6 +1,6 @@
Name: libheif
Version: 1.17.6
Release: 1mamba
Release: 2mamba
Summary: An HEIF and AVIF file format decoder and encoder
Group: System/Libraries
Vendor: openmamba
@ -8,6 +8,7 @@ Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/strukturag/libheif
Source: https://github.com/strukturag/libheif.git/v%{version}/libheif-%{version}.tar.bz2
Patch0: libheif-1.17.6-svt-av1-2.0.0.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -26,7 +27,9 @@ BuildRequires: libwebp-devel
BuildRequires: libx265-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libsvt-av1-devel >= 2.0.0-1mamba
BuildRequires: librav1e-devel
BuildRequires: libx265-devel >= 3.6
BuildRequires: cmake
%description
@ -53,6 +56,7 @@ This package contains utility applications for %{name}.
%prep
%setup -q
%patch 0 -p1 -b .svt-av1-2.0.0
%build
%cmake -d build \
@ -103,6 +107,9 @@ This package contains utility applications for %{name}.
%{_mandir}/man1/heif-*.1*
%changelog
* Fri May 03 2024 Automatic Build System <autodist@mambasoft.it> 1.17.6-2mamba
- rebuilt by autoport with build requirements: libsvt-av1-devel>=2.0.0-1mamba
* Wed Dec 20 2023 Automatic Build System <autodist@mambasoft.it> 1.17.6-1mamba
- automatic version update by autodist