diff --git a/configure b/configure index 43f846a728..3d400ec82b 100755 --- a/configure +++ b/configure @@ -2806,10 +2806,7 @@ is_in $arch $ARCH_LIST || warn "unknown architecture $arch" enable $arch # Add processor-specific flags -if test "$cpu" = generic; then - : do nothing - -elif enabled aarch64; then +if enabled aarch64; then case $cpu in armv*) @@ -2984,8 +2981,10 @@ elif enabled x86; then fi -add_cflags $cpuflags -add_asflags $cpuflags +if [ "$cpu" != generic ]; then + add_cflags $cpuflags + add_asflags $cpuflags +fi # compiler sanity check check_exec <fft_calc = ff_fft_fixed_calc_neon; #if CONFIG_MDCT - if (!s->inverse && s->mdct_bits >= 5) { + if (!s->inverse && s->nbits >= 3) { s->mdct_permutation = FF_MDCT_PERM_INTERLEAVE; s->mdct_calc = ff_mdct_fixed_calc_neon; s->mdct_calcw = ff_mdct_fixed_calcw_neon; diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index 7727f0b1eb..2c43b36aa4 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -147,13 +147,13 @@ static const struct algo idct_tab[] = { { "INT-ARM", ff_j_rev_dct_arm, MMX_PERM }, #endif #if HAVE_ARMV5TE - { "SIMPLE-ARMV5TE", ff_simple_idct_armv5te,NO_PERM }, + { "SIMPLE-ARMV5TE", ff_simple_idct_armv5te,NO_PERM, AV_CPU_FLAG_ARMV5TE }, #endif #if HAVE_ARMV6 - { "SIMPLE-ARMV6", ff_simple_idct_armv6, MMX_PERM }, + { "SIMPLE-ARMV6", ff_simple_idct_armv6, MMX_PERM, AV_CPU_FLAG_ARMV6 }, #endif #if HAVE_NEON - { "SIMPLE-NEON", ff_simple_idct_neon, PARTTRANS_PERM }, + { "SIMPLE-NEON", ff_simple_idct_neon, PARTTRANS_PERM, AV_CPU_FLAG_NEON }, #endif #if ARCH_ALPHA diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 701a56d284..02c3aaab38 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -24,6 +24,7 @@ #include "avcodec.h" #include "internal.h" #include "dsputil.h" +#include "internal.h" #include "dwt.h" #include "snow.h"