[libavif] Update 0.9.1 to 0.9.2 (#18973)

* [libavif] Update 0.9.1 -> 0.9.2

* [libavif] vcpkg x-add-version --all
This commit is contained in:
Dmitry Baryshev 2021-07-23 00:52:56 +03:00 committed by GitHub
parent 4eebfa3bef
commit dc2d7dc09d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 45 deletions

View File

@ -1,26 +0,0 @@
From 7d7fae33029d359423b26b60ea12174028ebcf3a Mon Sep 17 00:00:00 2001
From: Dmitry Baryshev <dmitrymq@gmail.com>
Date: Wed, 2 Jun 2021 21:01:59 +0300
Subject: [PATCH] Enable CMake configs in VCPKG mode
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d773025..dd80d22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -564,7 +564,8 @@ if(NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)
- if (BUILD_SHARED_LIBS)
+ # Enable CMake configs in VCPKG mode
+ if (BUILD_SHARED_LIBS OR VCPKG_TARGET_TRIPLET)
install(EXPORT ${PROJECT_NAME}-config
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
--
2.22.0.windows.1

View File

@ -1,13 +0,0 @@
diff --git a/src/read.c b/src/read.c
index bea0150..1132610 100644
--- a/src/read.c
+++ b/src/read.c
@@ -872,7 +872,7 @@ static avifResult avifDecoderItemRead(avifDecoderItem * item, avifIO * io, avifR
return AVIF_RESULT_BMFF_PARSE_FAILED;
}
offsetBuffer.data = idatBuffer->data + extent->offset;
- offsetBuffer.size = idatBuffer->size - extent->offset;
+ offsetBuffer.size = (size_t)(idatBuffer->size - extent->offset);
} else {
// construction_method: file(0)

View File

@ -4,13 +4,11 @@ vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "UWP")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO AOMediaCodec/libavif
REF v0.9.1
SHA512 15fa857ee40aeae2ee077d244c6e11a34193f2348e922b5dfa8579a91fa6ceff05c7146e85f9222ebaa6ef2d76e876ea050e8056990cad80850fb4d9581de9a5
REF v0.9.2
SHA512 04400ae76214d2f0361a14897d6ee97be675375865bb96c8d237e9a4a1152ac1a966db903c11df82da71b0bc68599a5857e038cc90d63c5d3bc77b13169a3e75
HEAD_REF master
PATCHES
disable-source-utf8.patch
fix-assigning-size_t.patch
always-install-configs.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,6 @@
{
"name": "libavif",
"version-semver": "0.9.1",
"version-semver": "0.9.2",
"description": "Library for encoding and decoding AVIF files",
"homepage": "https://github.com/AOMediaCodec/libavif",
"supports": "!uwp & !arm",

View File

@ -3045,7 +3045,7 @@
"port-version": 1
},
"libavif": {
"baseline": "0.9.1",
"baseline": "0.9.2",
"port-version": 0
},
"libb2": {

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7e78225af6d76356499d029ed6cb0d55fa20629a",
"version-semver": "0.9.2",
"port-version": 0
},
{
"git-tree": "b2592851defcaf39a20d88d4edb670188254bade",
"version-semver": "0.9.1",