[FFmpeg-cvslog] libavutil: Fix building libavutil/tests/cpu for aarch64 without SVE

Martin Storsjö git at videolan.org
Fri Sep 27 09:02:47 EEST 2024


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Fri Sep 27 09:01:23 2024 +0300| [fd1ea75c937ddbd42501025237e5e6221b210ef9] | committer: Martin Storsjö

libavutil: Fix building libavutil/tests/cpu for aarch64 without SVE

This adds a condition that was missed in
b1ee2af8432e2720009df92f4ee49d98b05dc2ce, fixing compilation on
toolchains that don't support SVE.

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fd1ea75c937ddbd42501025237e5e6221b210ef9
---

 libavutil/tests/cpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/tests/cpu.c b/libavutil/tests/cpu.c
index abe2b057d7..8c4a9ccad8 100644
--- a/libavutil/tests/cpu.c
+++ b/libavutil/tests/cpu.c
@@ -165,7 +165,7 @@ int main(int argc, char **argv)
     print_cpu_flags(cpu_flags_raw, "raw");
     print_cpu_flags(cpu_flags_eff, "effective");
     printf("threads = %s (cpu_count = %d)\n", threads, cpu_count);
-#if ARCH_AARCH64
+#if ARCH_AARCH64 && HAVE_SVE
     if (cpu_flags_raw & AV_CPU_FLAG_SVE)
         printf("sve_vector_length = %d\n", 8 * ff_aarch64_sve_length());
 #endif



More information about the ffmpeg-cvslog mailing list