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

Happens with pad filter after limiter.
release/5.1
Paul B Mahol 3 years ago
parent f4098bbc3b
commit 28d011516b
  1. 4
      libavfilter/x86/vf_limiter.asm

@ -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

Loading…
Cancel
Save