aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Denis-Courmont <remi@remlab.net>2024-06-08 15:04:46 +0300
committerRémi Denis-Courmont <remi@remlab.net>2024-06-08 18:30:43 +0300
commitdaac101e61697cdc39e6e01d77ff6201efc70845 (patch)
tree8fd278f3ca78f7bdf296c05fe82e4f44e02916ff
parent658439934b255215548269116481e2d48da9ee3b (diff)
downloadffmpeg-daac101e61697cdc39e6e01d77ff6201efc70845.tar.gz
lavc/aacencdsp: fix rounding in R-V V quantize_bands
We need to round toward zero here.
-rw-r--r--libavcodec/riscv/aacencdsp_rvv.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/riscv/aacencdsp_rvv.S b/libavcodec/riscv/aacencdsp_rvv.S
index ddb4155398..21e66a77ae 100644
--- a/libavcodec/riscv/aacencdsp_rvv.S
+++ b/libavcodec/riscv/aacencdsp_rvv.S
@@ -59,7 +59,7 @@ NOHWF fmv.w.x fa1, a7
.if \signed
vfsgnjx.vv v16, v16, v8
.endif
- vfcvt.x.f.v v16, v16
+ vfcvt.rtz.x.f.v v16, v16
vse32.v v16, (a0)
sh2add a0, t0, a0
bnez a3, .L\signed