aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-07 13:46:48 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-07 14:33:10 +0200
commitcc77bb09e430428122a8d23159ef49c2ab9a2629 (patch)
tree5a1903bc5a54fea2b7533d33e60547d6bb216b2b
parenta6153977df6d2498981391469bb018237ab66b42 (diff)
downloadffmpeg-cc77bb09e430428122a8d23159ef49c2ab9a2629.tar.gz
avcodec/x86/vp9dsp_init: Fix mix of declaration and statement
Reviewed-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/x86/vp9dsp_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/x86/vp9dsp_init.c b/libavcodec/x86/vp9dsp_init.c
index f2ac6e80bc..979bd936ac 100644
--- a/libavcodec/x86/vp9dsp_init.c
+++ b/libavcodec/x86/vp9dsp_init.c
@@ -309,10 +309,11 @@ ipred_func(32, tm, avx2);
av_cold void ff_vp9dsp_init_x86(VP9DSPContext *dsp, int bpp)
{
+#if HAVE_YASM
+ int cpu_flags;
if (bpp != 8) return;
-#if HAVE_YASM
- int cpu_flags = av_get_cpu_flags();
+ cpu_flags = av_get_cpu_flags();
#define init_fpel(idx1, idx2, sz, type, opt) \
dsp->mc[idx1][FILTER_8TAP_SMOOTH ][idx2][0][0] = \