diff mbox series

[FFmpeg-devel,V2] libswscale/x86/yuv2rgb: Fix Segmentation Fault when load unaligned data

Message ID 20200226025429.29471-1-ting.fu@intel.com
State Accepted
Headers show
Series [FFmpeg-devel,V2] libswscale/x86/yuv2rgb: Fix Segmentation Fault when load unaligned data | expand

Checks

Context Check Description
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Fu, Ting Feb. 26, 2020, 2:54 a.m. UTC
Fixes ticket #8532

Signed-off-by: Ting Fu <ting.fu@intel.com>
---
V2:
    Add ticket info in commit message

 libswscale/x86/yuv_2_rgb.asm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Carl Eugen Hoyos Feb. 26, 2020, 10:15 a.m. UTC | #1
Am Mi., 26. Feb. 2020 um 03:58 Uhr schrieb Ting Fu <ting.fu@intel.com>:
>
> Fixes ticket #8532

Patch applied.

Thank you, Carl Eugen
diff mbox series

Patch

diff --git a/libswscale/x86/yuv_2_rgb.asm b/libswscale/x86/yuv_2_rgb.asm
index e05bbb89f5..575a84d921 100644
--- a/libswscale/x86/yuv_2_rgb.asm
+++ b/libswscale/x86/yuv_2_rgb.asm
@@ -139,7 +139,7 @@  cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters
     VBROADCASTSD vr_coff,  [pointer_c_ditherq + 4  * 8]
 %endif
 %endif
-    mova m_y, [py_2indexq + 2 * indexq]
+    movu m_y, [py_2indexq + 2 * indexq]
     movh m_u, [pu_indexq  +     indexq]
     movh m_v, [pv_indexq  +     indexq]
 .loop0:
@@ -347,7 +347,7 @@  cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters
 %endif ; PACK RGB15/16
 %endif ; PACK RGB15/16/32
 
-mova m_y, [py_2indexq + 2 * indexq + 8 * time_num]
+movu m_y, [py_2indexq + 2 * indexq + 8 * time_num]
 movh m_v, [pv_indexq  +     indexq + 4 * time_num]
 movh m_u, [pu_indexq  +     indexq + 4 * time_num]
 add imageq, 8 * depth * time_num