[FFmpeg-devel] [PATCH 5/5] lavc/h264idct: fix compilation for RV32IMA

Rémi Denis-Courmont remi at remlab.net
Wed Nov 20 20:48:20 EET 2024


---
 libavcodec/riscv/h264idct_rvv.S | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/riscv/h264idct_rvv.S b/libavcodec/riscv/h264idct_rvv.S
index 5adcfd295e..2a40e87d62 100644
--- a/libavcodec/riscv/h264idct_rvv.S
+++ b/libavcodec/riscv/h264idct_rvv.S
@@ -629,6 +629,7 @@ endfunc
 .endm
 
 .macro idct4_add8 type, depth
+#if (__riscv_xlen == 64)
 func ff_h264_idct4_add\type\()_\depth\()_rvv, zve32x
 .if \depth == 8
         lpad    0
@@ -682,6 +683,7 @@ func ff_h264_idct4_add\type\()_\depth\()_rvv, zve32x
         vsetivli    zero, 4, e8, m1, ta, ma
         j       .Lidct4_add4_\depth\()_rvv
 endfunc
+#endif
 .endm
 
 .irp    depth, 8, 16
-- 
2.45.2



More information about the ffmpeg-devel mailing list