ffmpeg | branch: master | Zhao Zhili <zhiliz...@tencent.com> | Sat Nov  2 
13:26:51 2024 +0800| [994368be8fe4d6eeec236caa1e17ac8b97babde0] | committer: 
Nuo Mi

x86/vvc: Fix build error for arch x86_32

There were static functions which built for x86_32, but the simd
functions they reference only available for x86_64.

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

 libavcodec/x86/vvc/vvcdsp_init.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/x86/vvc/vvcdsp_init.c b/libavcodec/x86/vvc/vvcdsp_init.c
index f3e2e3a27b..7b6aa50676 100644
--- a/libavcodec/x86/vvc/vvcdsp_init.c
+++ b/libavcodec/x86/vvc/vvcdsp_init.c
@@ -30,6 +30,8 @@
 #include "libavcodec/vvc/dsp.h"
 #include "libavcodec/x86/h26x/h2656dsp.h"
 
+#if ARCH_X86_64
+
 #define PUT_PROTOTYPE(name, depth, opt) \
 void ff_vvc_put_ ## name ## _ ## depth ## _##opt(int16_t *dst, const uint8_t 
*src, ptrdiff_t srcstride, int height, const int8_t *hf, const int8_t *vf, int 
width);
 
@@ -356,6 +358,9 @@ int ff_vvc_sad_avx2(const int16_t *src0, const int16_t 
*src1, int dx, int dy, in
 #define SAD_INIT() c->inter.sad = ff_vvc_sad_avx2
 #endif
 
+
+#endif // ARCH_X86_64
+
 void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
 {
 #if ARCH_X86_64

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to