summaryrefslogtreecommitdiffstats
path: root/libavfilter/aarch64
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2018-07-26 23:45:01 +0300
committerJan Ekström <jeebjp@gmail.com>2018-07-28 17:41:19 +0300
commiteb94ec3257940c6d63462c2c228d42e366449a9f (patch)
treeedb2caf852e5c1951f355a045029354aa10d2524 /libavfilter/aarch64
parentd228df6ff3597928acf76d7ae922c1ec7d2c0b0f (diff)
downloadffmpeg-streaming-eb94ec3257940c6d63462c2c228d42e366449a9f.zip
ffmpeg-streaming-eb94ec3257940c6d63462c2c228d42e366449a9f.tar.gz
lavfi/nlmeans: fix aarch64 assembly with clang
Clang is more strict about some things.
Diffstat (limited to 'libavfilter/aarch64')
-rw-r--r--libavfilter/aarch64/vf_nlmeans_neon.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/aarch64/vf_nlmeans_neon.S b/libavfilter/aarch64/vf_nlmeans_neon.S
index 6308a42..e69b0dd 100644
--- a/libavfilter/aarch64/vf_nlmeans_neon.S
+++ b/libavfilter/aarch64/vf_nlmeans_neon.S
@@ -22,7 +22,7 @@
// acc_sum_store(ABCD) = {X+A, X+A+B, X+A+B+C, X+A+B+C+D}
.macro acc_sum_store x, xb
- dup v24.4S, v24.4S[3] // ...X -> XXXX
+ dup v24.4S, v24.S[3] // ...X -> XXXX
ext v25.16B, v26.16B, \xb, #12 // ext(0000,ABCD,12)=0ABC
add v24.4S, v24.4S, \x // XXXX+ABCD={X+A,X+B,X+C,X+D}
add v24.4S, v24.4S, v25.4S // {X+A,X+B+A,X+C+B,X+D+C} (+0ABC)
@@ -37,7 +37,7 @@ function ff_compute_safe_ssd_integral_image_neon, export=1
movi v26.4S, #0 // used as zero for the "rotations" in acc_sum_store
sub x3, x3, w6, UXTW // s1 padding (s1_linesize - w)
sub x5, x5, w6, UXTW // s2 padding (s2_linesize - w)
- sub x9, x0, x1, UXTW #2 // dst_top
+ sub x9, x0, w1, UXTW #2 // dst_top
sub x1, x1, w6, UXTW // dst padding (dst_linesize_32 - w)
lsl x1, x1, #2 // dst padding expressed in bytes
1: mov w10, w6 // width copy for each line
OpenPOWER on IntegriCloud