From 3bee7202563aa18a2a257a31b69c031d76b6cb67 Mon Sep 17 00:00:00 2001
From: shinchiro <shinchiro@users.noreply.github.com>
Date: Wed, 11 Dec 2024 22:28:02 +0800
Subject: [PATCH] svtav1: fix clash symbol name with ffmpeg in aarch64

---
 packages/svtav1.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/packages/svtav1.cmake b/packages/svtav1.cmake
index df167a221..09c8a4276 100644
--- a/packages/svtav1.cmake
+++ b/packages/svtav1.cmake
@@ -15,6 +15,7 @@ ExternalProject_Add(svtav1
         -DBUILD_ENC=ON
         -DSVT_AV1_LTO=OFF
         -DBUILD_APPS=OFF
+        -DCMAKE_C_FLAGS='${CMAKE_C_FLAGS} -Dav1_cospi_arr_s32_data=svtav1_av1_cospi_arr_s32_data'
     BUILD_COMMAND ${EXEC} ninja -C <BINARY_DIR>
     INSTALL_COMMAND ${EXEC} ninja -C <BINARY_DIR> install
     LOG_DOWNLOAD 1 LOG_UPDATE 1 LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1