[FFmpeg-cvslog] swscale/x86/yuv2rgb: fix crashes when loading alpha from unaligned buffers

Marton Balint git at videolan.org
Mon Nov 2 01:50:45 EET 2020


ffmpeg | branch: master | Marton Balint <cus at passwd.hu> | Wed Oct 28 23:11:37 2020 +0100| [993429cfb4a1a8d491d124be228cb7d620a57ba9] | committer: Marton Balint

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 at passwd.hu>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=993429cfb4a1a8d491d124be228cb7d620a57ba9
---

 libswscale/x86/yuv_2_rgb.asm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list