1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/x86/vvc/vvcdsp_init: fix unresolved external symbol on ARCH_X86_32

Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
This commit is contained in:
Wu Jianhua 2024-02-05 19:59:23 +08:00 committed by Nuo Mi
parent 7f92014aca
commit 3372876888

View File

@ -31,6 +31,7 @@
#include "libavcodec/vvc/vvcdsp.h"
#include "libavcodec/x86/h26x/h2656dsp.h"
#if ARCH_X86_64
#define FW_PUT(name, depth, opt) \
static 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) \
@ -204,12 +205,13 @@ AVG_FUNCS(16, 12, avx2)
c->inter.avg = bf(avg, bd, opt); \
c->inter.w_avg = bf(w_avg, bd, opt); \
} while (0)
#endif
void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
{
#if ARCH_X86_64
const int cpu_flags = av_get_cpu_flags();
if (ARCH_X86_64) {
if (bd == 8) {
if (EXTERNAL_SSE4(cpu_flags)) {
MC_LINK_SSE4(8);
@ -250,5 +252,5 @@ void ff_vvc_dsp_init_x86(VVCDSPContext *const c, const int bd)
break;
}
}
}
#endif
}