[FFmpeg-cvslog] riscv: Fix linking without RVV; change #ifdef into #if
Martin Storsjö
git at videolan.org
Thu Sep 29 10:32:57 EEST 2022
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Sep 29 08:02:40 2022 +0300| [6059ea2a14747a44e937a3409ff3cfcab7aa1468] | committer: Martin Storsjö
riscv: Fix linking without RVV; change #ifdef into #if
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6059ea2a14747a44e937a3409ff3cfcab7aa1468
---
libavcodec/riscv/fmtconvert_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/riscv/fmtconvert_init.c b/libavcodec/riscv/fmtconvert_init.c
index fd1a8e0ca1..2ded9d3615 100644
--- a/libavcodec/riscv/fmtconvert_init.c
+++ b/libavcodec/riscv/fmtconvert_init.c
@@ -33,7 +33,7 @@ void ff_int32_to_float_fmul_array8_rvv(FmtConvertContext *c, float *dst,
av_cold void ff_fmt_convert_init_riscv(FmtConvertContext *c)
{
-#ifdef HAVE_RVV
+#if HAVE_RVV
int flags = av_get_cpu_flags();
if (flags & AV_CPU_FLAG_RVV_F32) {
More information about the ffmpeg-cvslog
mailing list