From 76c353bab7385899fc56c328d127fb395e67ce8e Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 11 Aug 2022 09:57:11 -0700 Subject: [PATCH] picture_csp_enc.c,CheckNonOpaque: rm unneeded local the ternary used with alpha_offset was removed in: 3b07d327 Import,RGBA: fix for BigEndian import use the ALPHA_OFFSET directly Change-Id: Iee9b7c54f1498591e8c5834766dc4d34a321133d --- src/enc/picture_csp_enc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/enc/picture_csp_enc.c b/src/enc/picture_csp_enc.c index d23ac776..8a3a86c4 100644 --- a/src/enc/picture_csp_enc.c +++ b/src/enc/picture_csp_enc.c @@ -69,9 +69,8 @@ static int CheckNonOpaque(const uint8_t* alpha, int width, int height, int WebPPictureHasTransparency(const WebPPicture* picture) { if (picture == NULL) return 0; if (picture->use_argb) { - const int alpha_offset = ALPHA_OFFSET; if (picture->argb != NULL) { - return CheckNonOpaque((const uint8_t*)picture->argb + alpha_offset, + return CheckNonOpaque((const uint8_t*)picture->argb + ALPHA_OFFSET, picture->width, picture->height, 4, picture->argb_stride * sizeof(*picture->argb)); }