summaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/vp8dsp-init.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/vp8dsp-init.c
parent2cb7c8166920aa8dbb969de9befd0981b5a8f2ad (diff)
downloadffmpeg-streaming-265980dabc2833a7d751edd6993d258f0048f48e.zip
ffmpeg-streaming-265980dabc2833a7d751edd6993d258f0048f48e.tar.gz
x86: Move some variable declarations below the appropriat #ifdef.
This avoids some unused variable warnings with YASM disabled.
Diffstat (limited to 'libavcodec/x86/vp8dsp-init.c')
-rw-r--r--libavcodec/x86/vp8dsp-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/vp8dsp-init.c b/libavcodec/x86/vp8dsp-init.c
index 8b27b0d..f5e89fa 100644
--- a/libavcodec/x86/vp8dsp-init.c
+++ b/libavcodec/x86/vp8dsp-init.c
@@ -283,9 +283,9 @@ DECLARE_LOOP_FILTER(sse4)
av_cold void ff_vp8dsp_init_x86(VP8DSPContext* c)
{
+#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
-#if HAVE_YASM
if (mm_flags & AV_CPU_FLAG_MMX) {
c->vp8_idct_dc_add = ff_vp8_idct_dc_add_mmx;
c->vp8_idct_dc_add4y = ff_vp8_idct_dc_add4y_mmx;
OpenPOWER on IntegriCloud