Update to version 0.6.2
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=9
This commit is contained in:
parent
d28547f282
commit
26d7a56fa5
30
109.patch
Normal file
30
109.patch
Normal file
@ -0,0 +1,30 @@
|
||||
From 874528ff2d81e19e06ae923eef89fdecc6f82b67 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schneider <asn@cryptomilk.org>
|
||||
Date: Wed, 11 Mar 2020 09:32:03 +0100
|
||||
Subject: [PATCH] apps:avifpng: Remove unused variable hasAlpha
|
||||
|
||||
apps/shared/avifpng.c: In function 'avifPNGRead':
|
||||
apps/shared/avifpng.c:80:14: error: variable 'hasAlpha' set but not used [-Werror=unused-but-set-variable]
|
||||
avifBool hasAlpha = AVIF_FALSE;
|
||||
^~~~~~~~
|
||||
|
||||
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
|
||||
---
|
||||
apps/shared/avifpng.c | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
diff --git a/apps/shared/avifpng.c b/apps/shared/avifpng.c
|
||||
index a144680..b34e361 100644
|
||||
--- a/apps/shared/avifpng.c
|
||||
+++ b/apps/shared/avifpng.c
|
||||
@@ -77,10 +77,8 @@ avifBool avifPNGRead(avifImage * avif, const char * inputFilename, avifPixelForm
|
||||
png_set_expand_gray_1_2_4_to_8(png);
|
||||
}
|
||||
|
||||
- avifBool hasAlpha = AVIF_FALSE;
|
||||
if (png_get_valid(png, info, PNG_INFO_tRNS)) {
|
||||
png_set_tRNS_to_alpha(png);
|
||||
- hasAlpha = AVIF_TRUE;
|
||||
}
|
||||
|
||||
if ((rawColorType == PNG_COLOR_TYPE_RGB) || (rawColorType == PNG_COLOR_TYPE_GRAY) || (rawColorType == PNG_COLOR_TYPE_PALETTE)) {
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a13696da1eb876d69bce77a44d52a7ab00e4c8b1692256c4573aa25054c9f76a
|
||||
size 2867204
|
3
libavif-0.6.2.tar.gz
Normal file
3
libavif-0.6.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e3d53235ca8691d223567160757f3930b0f9b9c5bb0a1f15ebbdde042b2a19fa
|
||||
size 2877947
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 11 06:51:01 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Update to version 0.6.2
|
||||
https://github.com/AOMediaCodec/libavif/blob/master/CHANGELOG.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 11 06:10:27 UTC 2020 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
|
@ -18,20 +18,23 @@
|
||||
|
||||
%bcond_with aom
|
||||
|
||||
%define lib_name libavif0
|
||||
%define lib_name libavif2
|
||||
|
||||
Name: libavif
|
||||
Version: 0.5.7
|
||||
Version: 0.6.2
|
||||
Release: 0
|
||||
Summary: Library for encoding and decoding .avif files
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/AOMediaCodec/libavif
|
||||
#
|
||||
Source: https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
#
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: nasm
|
||||
BuildRequires: pkgconfig(dav1d)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(rav1e)
|
||||
|
||||
%if %{with aom}
|
||||
|
Loading…
Reference in New Issue
Block a user