summaryrefslogtreecommitdiff
path: root/libswscale/aarch64/yuv2rgb_neon.S
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2020-07-07 16:01:58 +0100
committerLynne <dev@lynne.ee>2020-07-09 10:33:14 +0100
commit3e098cca6e51db0f19928c12d0348deaa17137b3 (patch)
treeaf9b0f43a0ee2d3eba6cd4fb36c89637b3891f30 /libswscale/aarch64/yuv2rgb_neon.S
parent05feb7a26b0360de97ea460802a4122f78f5fb88 (diff)
aarch64/yuv2rgb_neon: fix return value
We return 0 for this particular architecture but should instead be returning the number of lines. Fixes users who check the return value matches what they expect.
Diffstat (limited to 'libswscale/aarch64/yuv2rgb_neon.S')
-rw-r--r--libswscale/aarch64/yuv2rgb_neon.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/aarch64/yuv2rgb_neon.S b/libswscale/aarch64/yuv2rgb_neon.S
index b7446aa105..f4b220fb60 100644
--- a/libswscale/aarch64/yuv2rgb_neon.S
+++ b/libswscale/aarch64/yuv2rgb_neon.S
@@ -142,6 +142,7 @@
.macro declare_func ifmt ofmt
function ff_\ifmt\()_to_\ofmt\()_neon, export=1
load_args_\ifmt
+ mov w9, w1
1:
mov w8, w0 // w8 = width
2:
@@ -193,6 +194,7 @@ function ff_\ifmt\()_to_\ofmt\()_neon, export=1
increment_\ifmt
subs w1, w1, #1 // height -= 1
b.gt 1b
+ mov w0, w9
ret
endfunc
.endm