summaryrefslogtreecommitdiff
path: root/libavcodec/x86/ac3dsp_mmx.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2011-10-20 15:43:16 +0200
committerDiego Biurrun <diego@biurrun.de>2011-10-20 16:19:27 +0200
commit265980dabc2833a7d751edd6993d258f0048f48e (patch)
tree2c25bf958adb636121ae0e0aafd1578c204208d6 /libavcodec/x86/ac3dsp_mmx.c
parent2cb7c8166920aa8dbb969de9befd0981b5a8f2ad (diff)
x86: Move some variable declarations below the appropriat #ifdef.
This avoids some unused variable warnings with YASM disabled.
Diffstat (limited to 'libavcodec/x86/ac3dsp_mmx.c')
-rw-r--r--libavcodec/x86/ac3dsp_mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/ac3dsp_mmx.c b/libavcodec/x86/ac3dsp_mmx.c
index 692d240d4c..d6bb469457 100644
--- a/libavcodec/x86/ac3dsp_mmx.c
+++ b/libavcodec/x86/ac3dsp_mmx.c
@@ -50,9 +50,9 @@ extern void ff_ac3_extract_exponents_ssse3(uint8_t *exp, int32_t *coef, int nb_c
av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact)
{
+#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
-#if HAVE_YASM
if (mm_flags & AV_CPU_FLAG_MMX) {
c->ac3_exponent_min = ff_ac3_exponent_min_mmx;
c->ac3_max_msb_abs_int16 = ff_ac3_max_msb_abs_int16_mmx;