diff mbox series

[FFmpeg-devel] swscale/rgb2rgb: fix extra iteration in R-V V interleave

Message ID 20231001180148.286175-1-remi@remlab.net
State Accepted
Commit ede3215115eddc2f1609662b77db82af575070eb
Headers show
Series [FFmpeg-devel] swscale/rgb2rgb: fix extra iteration in R-V V interleave | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished

Commit Message

Rémi Denis-Courmont Oct. 1, 2023, 6:01 p.m. UTC
There was an additional iteration doing nothing for each line,
due to checking the selected vector length instead of the available
vector length.
---
 libswscale/riscv/rgb2rgb_rvv.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libswscale/riscv/rgb2rgb_rvv.S b/libswscale/riscv/rgb2rgb_rvv.S
index 56539690bc..71e8fac6f3 100644
--- a/libswscale/riscv/rgb2rgb_rvv.S
+++ b/libswscale/riscv/rgb2rgb_rvv.S
@@ -90,7 +90,7 @@  func ff_interleave_bytes_rvv, zve32x
         add        t1, t4, t1
         vsseg2e8.v v8, (t2)
         sh1add     t2, t4, t2
-        bnez       t4, 2b
+        bnez       t3, 2b
 
         add     a0, a0, a5
         add     a1, a1, a6