aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/arm/fmtconvert_init_arm.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-08-23 20:01:36 +0200
committerDiego Biurrun <diego@biurrun.de>2013-08-29 11:24:14 +0200
commitf0389eb777b1ab4291329d4f709098cdfa7384dc (patch)
tree369f5cc03bd02610fc95123b84e446036c00feb6 /libavcodec/arm/fmtconvert_init_arm.c
parent7ffda66fd5c81af4725bff7c2c4f207ba2aa0613 (diff)
downloadffmpeg-f0389eb777b1ab4291329d4f709098cdfa7384dc.tar.gz
arm: fmtconvert: Split armv6 fmtconvert code off from vfp code
Diffstat (limited to 'libavcodec/arm/fmtconvert_init_arm.c')
-rw-r--r--libavcodec/arm/fmtconvert_init_arm.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/arm/fmtconvert_init_arm.c b/libavcodec/arm/fmtconvert_init_arm.c
index eb66eb8233..7c5bd91d50 100644
--- a/libavcodec/arm/fmtconvert_init_arm.c
+++ b/libavcodec/arm/fmtconvert_init_arm.c
@@ -43,16 +43,15 @@ av_cold void ff_fmt_convert_init_arm(FmtConvertContext *c, AVCodecContext *avctx
{
int cpu_flags = av_get_cpu_flags();
- if (have_vfp(cpu_flags) && have_armv6(cpu_flags)) {
+ if (have_vfp(cpu_flags)) {
if (!have_vfpv3(cpu_flags)) {
- // These functions don't use anything armv6 specific in themselves,
- // but ff_float_to_int16_vfp which is in the same assembly source
- // file does, thus the whole file requires armv6 to be built.
c->int32_to_float_fmul_scalar = ff_int32_to_float_fmul_scalar_vfp;
c->int32_to_float_fmul_array8 = ff_int32_to_float_fmul_array8_vfp;
}
- c->float_to_int16 = ff_float_to_int16_vfp;
+ if (have_armv6(cpu_flags)) {
+ c->float_to_int16 = ff_float_to_int16_vfp;
+ }
}
if (have_neon(cpu_flags)) {