Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 34141ab069537101629031f9aae3c614 > files > 3

libwebp-1.3.0-2.mga9.src.rpm

From 8f7513b7c0aec45bf163c107284bccb86aa478ef Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Mon, 7 Mar 2022 18:35:47 +0000
Subject: [PATCH] upsampling_neon.c: fix WEBP_SWAP_16BIT_CSP check

this is always defined by default to 0 since:
v0.6.0-158-g663a6d9d unify the ALTERNATE_CODE flag usage

previously the !defined() check would cause a mismatch between C and
assembly.

Change-Id: Idca0b8e39ca90d63785fd4125aeb7af86c5aae61
---
 src/dsp/upsampling_neon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dsp/upsampling_neon.c b/src/dsp/upsampling_neon.c
index 6ba71a7de5..bbc000ca2d 100644
--- a/src/dsp/upsampling_neon.c
+++ b/src/dsp/upsampling_neon.c
@@ -111,7 +111,7 @@ static const int16_t kCoeffs1[4] = { 19077, 26149, 6419, 13320 };
   vst4_u8(out, v255_r_g_b);                                             \
 } while (0)
 
-#if !defined(WEBP_SWAP_16BIT_CSP)
+#if (WEBP_SWAP_16BIT_CSP == 0)
 #define ZIP_U8(lo, hi) vzip_u8((lo), (hi))
 #else
 #define ZIP_U8(lo, hi) vzip_u8((hi), (lo))