Delete obsolete patch
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libavif?expand=0&rev=10
This commit is contained in:
parent
26d7a56fa5
commit
0c22f8020a
30
109.patch
30
109.patch
@ -1,30 +0,0 @@
|
||||
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)) {
|
Loading…
Reference in New Issue
Block a user