diff options
author | Rémi Denis-Courmont <remi@remlab.net> | 2023-12-05 17:54:26 +0200 |
---|---|---|
committer | Rémi Denis-Courmont <remi@remlab.net> | 2023-12-08 17:21:09 +0200 |
commit | b3825bbe452c8e4f129fa90bba1fed0ee7b87d71 (patch) | |
tree | 022ae13a579e7e282a307e009e7ce983aa2704f9 /libavcodec/riscv/bswapdsp_init.c | |
parent | 0b9d009b4a85be31ed8ba1a9cece3b2db3e4d2f3 (diff) | |
download | ffmpeg-b3825bbe452c8e4f129fa90bba1fed0ee7b87d71.tar.gz |
riscv: test for assembler support
This should fix the build on LLVM 16 and earlier, at the cost of turning
all non-RVV optimisations off.
Diffstat (limited to 'libavcodec/riscv/bswapdsp_init.c')
-rw-r--r-- | libavcodec/riscv/bswapdsp_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/riscv/bswapdsp_init.c b/libavcodec/riscv/bswapdsp_init.c index ed666c9b3a..d490c434e7 100644 --- a/libavcodec/riscv/bswapdsp_init.c +++ b/libavcodec/riscv/bswapdsp_init.c @@ -30,6 +30,7 @@ void ff_bswap16_buf_rvv(uint16_t *dst, const uint16_t *src, int len); av_cold void ff_bswapdsp_init_riscv(BswapDSPContext *c) { +#if HAVE_RV int flags = av_get_cpu_flags(); if (flags & AV_CPU_FLAG_RVB_ADDR) { @@ -42,4 +43,5 @@ av_cold void ff_bswapdsp_init_riscv(BswapDSPContext *c) c->bswap16_buf = ff_bswap16_buf_rvv; #endif } +#endif } |