Commit 828f7db5 authored by Ting Fu's avatar Ting Fu Committed by Carl Eugen Hoyos

libswscale/x86/yuv2rgb: Fix Segmentation Fault when load unaligned data

Fixes ticket #8532
Signed-off-by: 's avatarTing Fu <ting.fu@intel.com>
parent 36451f91
...@@ -139,7 +139,7 @@ cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters ...@@ -139,7 +139,7 @@ cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters
VBROADCASTSD vr_coff, [pointer_c_ditherq + 4 * 8] VBROADCASTSD vr_coff, [pointer_c_ditherq + 4 * 8]
%endif %endif
%endif %endif
mova m_y, [py_2indexq + 2 * indexq] movu m_y, [py_2indexq + 2 * indexq]
movh m_u, [pu_indexq + indexq] movh m_u, [pu_indexq + indexq]
movh m_v, [pv_indexq + indexq] movh m_v, [pv_indexq + indexq]
.loop0: .loop0:
...@@ -347,7 +347,7 @@ cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters ...@@ -347,7 +347,7 @@ cglobal %1_420_%2%3, GPR_num, GPR_num, reg_num, parameters
%endif ; PACK RGB15/16 %endif ; PACK RGB15/16
%endif ; PACK RGB15/16/32 %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_v, [pv_indexq + indexq + 4 * time_num]
movh m_u, [pu_indexq + indexq + 4 * time_num] movh m_u, [pu_indexq + indexq + 4 * time_num]
add imageq, 8 * depth * time_num add imageq, 8 * depth * time_num
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment