From 11f99a9a45925e14409eff65606973676d7376b6 Mon Sep 17 00:00:00 2001 From: Shiyou Yin Date: Wed, 31 Jul 2019 09:30:01 +0800 Subject: avutil/mips: Avoid instruction exception caused by gssqc1/gslqc1. Ensure the address accesed by gssqc1/gslqc1 are 16-byte aligned. --- libavcodec/mips/simple_idct_mmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/mips') diff --git a/libavcodec/mips/simple_idct_mmi.c b/libavcodec/mips/simple_idct_mmi.c index 7f4bb74fd2..73d797ffbc 100644 --- a/libavcodec/mips/simple_idct_mmi.c +++ b/libavcodec/mips/simple_idct_mmi.c @@ -39,7 +39,7 @@ #define COL_SHIFT 20 #define DC_SHIFT 3 -DECLARE_ALIGNED(8, const int16_t, W_arr)[46] = { +DECLARE_ALIGNED(16, const int16_t, W_arr)[46] = { W4, W2, W4, W6, W1, W3, W5, W7, W4, W6, -W4, -W2, -- cgit v1.2.3