align a stack array to prevent segfault BUG=aomedia:1383 Change-Id: I8c3de068fd158b4706b578f7609c8ef939364525
diff --git a/av1/common/x86/av1_inv_txfm_sse2.c b/av1/common/x86/av1_inv_txfm_sse2.c index f947755..9eaadb2 100644 --- a/av1/common/x86/av1_inv_txfm_sse2.c +++ b/av1/common/x86/av1_inv_txfm_sse2.c
@@ -1993,7 +1993,7 @@ // Remap 32x32 input into a modified 64x64 by: // - Copying over these values in top-left 32x32 locations. // - Setting the rest of the locations to 0. - int32_t mod_input[64 * 64]; + DECLARE_ALIGNED(32, int32_t, mod_input[64 * 64]); for (int row = 0; row < 32; ++row) { memcpy(mod_input + row * 64, input + row * 32, 32 * sizeof(*mod_input)); memset(mod_input + row * 64 + 32, 0, 32 * sizeof(*mod_input));