From a68021d41e9223e9d1c0cad9eaa2ef44d014f736 Mon Sep 17 00:00:00 2001 From: twivi Date: Sun, 11 Sep 2022 21:51:08 +0000 Subject: Fix ffvpx/libav architecture checks to use preprocessor instead, prevents breakage with LTCG --- media/ffvpx/libavcodec/videodsp.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'media/ffvpx/libavcodec/videodsp.c') diff --git a/media/ffvpx/libavcodec/videodsp.c b/media/ffvpx/libavcodec/videodsp.c index ce9e9eb143..4f082a4267 100644 --- a/media/ffvpx/libavcodec/videodsp.c +++ b/media/ffvpx/libavcodec/videodsp.c @@ -44,14 +44,15 @@ av_cold void ff_videodsp_init(VideoDSPContext *ctx, int bpc) ctx->emulated_edge_mc = ff_emulated_edge_mc_16; } - if (ARCH_AARCH64) + #if ARCH_AARCH64 == 1 ff_videodsp_init_aarch64(ctx, bpc); - if (ARCH_ARM) + #elif ARCH_ARM == 1 ff_videodsp_init_arm(ctx, bpc); - if (ARCH_PPC) + #elif ARCH_PPC == 1 ff_videodsp_init_ppc(ctx, bpc); - if (ARCH_X86) + #elif ARCH_X86 == 1 ff_videodsp_init_x86(ctx, bpc); - if (ARCH_MIPS) + #elif ARCH_MIPS == 1 ff_videodsp_init_mips(ctx, bpc); + #endif } -- cgit v1.2.3