diff options
author | Ting Fu <ting.fu@intel.com> | 2020-02-26 10:54:29 +0800 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2020-02-26 11:10:46 +0100 |
commit | 828f7db5d9fdf9052bb4b6d1b528009fece5bb10 (patch) | |
tree | f52da9570e4d7b52e0ba2fce429236d6f17e1de0 /libswscale | |
parent | 36451f916a93b7edd6e1810f4102b1e6269bea6a (diff) | |
download | ffmpeg-828f7db5d9fdf9052bb4b6d1b528009fece5bb10.tar.gz |
libswscale/x86/yuv2rgb: Fix Segmentation Fault when load unaligned data
Fixes ticket #8532
Signed-off-by: Ting Fu <ting.fu@intel.com>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/x86/yuv_2_rgb.asm | 4 |
1 files changed, 2 insertions, 2 deletions
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 |