aom: resize_avx2.c: fix integer sanitizer conversion warning

From ae7e8cc435bc055aee3c30934f97cf8f2bd2fa6e Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Wed, 1 May 2024 10:08:46 -0700
Subject: [PATCH] resize_avx2.c: fix integer sanitizer conversion warning

add missing cast in call to _mm256_set1_epi8().

fixes:
implicit conversion from type 'uint8_t' (aka 'unsigned char') of value
255 (8-bit, unsigned) to type 'char' changed the value to -1 (8-bit,
signed)

Change-Id: I9bf7a217f650a7255ed35ab7075358cb5e8e14d8
---
 av1/common/x86/resize_avx2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/av1/common/x86/resize_avx2.c b/av1/common/x86/resize_avx2.c
index c44edb88d..47f015ae7 100644
--- a/av1/common/x86/resize_avx2.c
+++ b/av1/common/x86/resize_avx2.c
@@ -174,7 +174,7 @@ bool resize_vert_dir_avx2(uint8_t *intbuf, uint8_t *output, int out_stride,
   const __m128i round_shift_bits = _mm_cvtsi32_si128(bits);
   const __m256i round_const_bits = _mm256_set1_epi32((1 << bits) >> 1);
   const uint8_t max_pixel = 255;
-  const __m256i clip_pixel = _mm256_set1_epi8(max_pixel);
+  const __m256i clip_pixel = _mm256_set1_epi8((char)max_pixel);
   const __m256i zero = _mm256_setzero_si256();
 
   prepare_filter_coeffs(av1_down2_symeven_half_filter, coeffs_y);