1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/x86/vf_limiter: use movu, dst may not be always aligned

Happens with pad filter after limiter.
This commit is contained in:
Paul B Mahol 2022-03-24 09:41:40 +01:00
parent f4098bbc3b
commit 28d011516b

View File

@ -41,7 +41,7 @@ cglobal limiter_8bit, 6, 7, 3, src, dst, slinesize, dlinesize, w, h, x
.loop:
movu m0, [srcq + xq]
CLIPUB m0, m1, m2
mova [dstq+xq], m0
movu [dstq+xq], m0
add xq, mmsize
jl .loop
@ -69,7 +69,7 @@ cglobal limiter_16bit, 6, 7, 3, src, dst, slinesize, dlinesize, w, h, x
movu m0, [srcq + xq]
pmaxuw m0, m1
pminuw m0, m2
mova [dstq+xq], m0
movu [dstq+xq], m0
add xq, mmsize
jl .loop