aom: Fix unaligned store issue in av1_resize_horz_dir_avx2()

From 085fe9c36385f78a53362d2f4f8e12dd4670360e Mon Sep 17 00:00:00 2001
From: Samuthirika S <[EMAIL REDACTED]>
Date: Wed, 8 May 2024 22:03:08 +0530
Subject: [PATCH] Fix unaligned store issue in av1_resize_horz_dir_avx2()

This CL fixes the unaligned store issue in
`av1_resize_horz_dir_avx2()` by using `xx_storel_32`.

BUG=aomedia:3570

Change-Id: I98138d19a39e000b650e4f64fa950a0f583b3b4b
---
 av1/common/x86/resize_avx2.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/av1/common/x86/resize_avx2.c b/av1/common/x86/resize_avx2.c
index f0421703c..38bbc2626 100644
--- a/av1/common/x86/resize_avx2.c
+++ b/av1/common/x86/resize_avx2.c
@@ -689,10 +689,9 @@ void av1_resize_horz_dir_avx2(const uint8_t *const input, int in_stride,
         res_out_row01 = _mm256_min_epu8(res_out_row01, clip_pixel);
         res_out_row01 = _mm256_max_epu8(res_out_row01, zero);
 
-        *((int *)(intbuf + out_idx)) =
-            _mm_cvtsi128_si32(CAST_LOW(res_out_row01));
-        *((int *)(intbuf + out_idx + dst_stride)) =
-            _mm_cvtsi128_si32(_mm256_extracti128_si256(res_out_row01, 1));
+        xx_storel_32(intbuf + out_idx, CAST_LOW(res_out_row01));
+        xx_storel_32(intbuf + out_idx + dst_stride,
+                     _mm256_extracti128_si256(res_out_row01, 1));
       }
 
       wd_processed = filtered_length - remain_col;