aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2020-10-28 23:11:37 +0100
committerMarton Balint <cus@passwd.hu>2020-11-02 00:31:34 +0100
commit993429cfb4a1a8d491d124be228cb7d620a57ba9 (patch)
treebc987fea4401267416a9218189cc67791c5df1b7
parent02188639caf9c3fa6dcca753b586c83f4f110b6f (diff)
downloadffmpeg-993429cfb4a1a8d491d124be228cb7d620a57ba9.tar.gz
swscale/x86/yuv2rgb: fix crashes when loading alpha from unaligned buffers
Regression since fc6a5883d6af8cae0e96af84dda0ad74b360a084 on SSSE3 enabled CPUs. Fixes ticket #8955. Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r--libswscale/x86/yuv_2_rgb.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/x86/yuv_2_rgb.asm b/libswscale/x86/yuv_2_rgb.asm
index 003dff1f25..2f0b4130df 100644
--- a/libswscale/x86/yuv_2_rgb.asm
+++ b/libswscale/x86/yuv_2_rgb.asm
@@ -286,7 +286,7 @@ cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters
%ifidn %1, yuv
pcmpeqd m3, m3 ; Set alpha empty
%else
- mova m3, [pa_2indexq + 2 * indexq] ; Load alpha
+ movu m3, [pa_2indexq + 2 * indexq] ; Load alpha
%endif
mova m5, m_blue
mova m6, m_red