X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Ffmtconvert.c;h=3b33af61efe7e278cca7477d7aca87b73b45ad47;hb=e0b187e7dada3a412c942d2e07f6caed8614b8ef;hp=1de1d318d2bae422d7172d860ad1a8a49fac0e06;hpb=06d69a2d225ae0db433b62f0fa537b06e29b0db5;p=ffmpeg diff --git a/libavcodec/fmtconvert.c b/libavcodec/fmtconvert.c index 1de1d318d2b..3b33af61efe 100644 --- a/libavcodec/fmtconvert.c +++ b/libavcodec/fmtconvert.c @@ -32,6 +32,14 @@ static void int32_to_float_fmul_scalar_c(float *dst, const int32_t *src, dst[i] = src[i] * mul; } +static void int32_to_float_c(float *dst, const int32_t *src, intptr_t len) +{ + int i; + + for (i = 0; i < len; i++) + dst[i] = (float)src[i]; +} + static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, const int32_t *src, const float *mul, int len) @@ -43,11 +51,18 @@ static void int32_to_float_fmul_array8_c(FmtConvertContext *c, float *dst, av_cold void ff_fmt_convert_init(FmtConvertContext *c, AVCodecContext *avctx) { + c->int32_to_float = int32_to_float_c; c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_c; c->int32_to_float_fmul_array8 = int32_to_float_fmul_array8_c; - if (ARCH_ARM) ff_fmt_convert_init_arm(c, avctx); - if (ARCH_PPC) ff_fmt_convert_init_ppc(c, avctx); - if (ARCH_X86) ff_fmt_convert_init_x86(c, avctx); - if (HAVE_MIPSFPU) ff_fmt_convert_init_mips(c); + if (ARCH_AARCH64) + ff_fmt_convert_init_aarch64(c, avctx); + if (ARCH_ARM) + ff_fmt_convert_init_arm(c, avctx); + if (ARCH_PPC) + ff_fmt_convert_init_ppc(c, avctx); + if (ARCH_X86) + ff_fmt_convert_init_x86(c, avctx); + if (HAVE_MIPSFPU) + ff_fmt_convert_init_mips(c); }