aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/x86
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2013-04-22 04:57:48 +0200
committerDiego Biurrun <diego@biurrun.de>2013-04-22 17:50:02 +0200
commitc1ad70c3cb0588254d66265578cfb14580dc0b94 (patch)
treed3f1ef4d5c10b8cfbfc676ba49c6a772ad1e1d5c /libavfilter/x86
parent10f1a4d9bd8239ac64f364e0d3b6423c28230d6d (diff)
downloadffmpeg-c1ad70c3cb0588254d66265578cfb14580dc0b94.tar.gz
x86: Move some conditional code around to avoid unused variable warnings
Diffstat (limited to 'libavfilter/x86')
-rw-r--r--libavfilter/x86/vf_gradfun.c2
-rw-r--r--libavfilter/x86/vf_yadif_init.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/x86/vf_gradfun.c b/libavfilter/x86/vf_gradfun.c
index 65a8172cbc..e571af7f88 100644
--- a/libavfilter/x86/vf_gradfun.c
+++ b/libavfilter/x86/vf_gradfun.c
@@ -200,9 +200,9 @@ static void gradfun_blur_line_sse2(uint16_t *dc, uint16_t *buf, uint16_t *buf1,
av_cold void ff_gradfun_init_x86(GradFunContext *gf)
{
+#if HAVE_MMXEXT_INLINE
int cpu_flags = av_get_cpu_flags();
-#if HAVE_MMXEXT_INLINE
if (cpu_flags & AV_CPU_FLAG_MMXEXT)
gf->filter_line = gradfun_filter_line_mmxext;
#endif
diff --git a/libavfilter/x86/vf_yadif_init.c b/libavfilter/x86/vf_yadif_init.c
index b330c73c59..2c142f7335 100644
--- a/libavfilter/x86/vf_yadif_init.c
+++ b/libavfilter/x86/vf_yadif_init.c
@@ -39,9 +39,9 @@ void ff_yadif_filter_line_ssse3(void *dst, void *prev, void *cur,
av_cold void ff_yadif_init_x86(YADIFContext *yadif)
{
+#if HAVE_YASM
int cpu_flags = av_get_cpu_flags();
-#if HAVE_YASM
#if ARCH_X86_32
if (EXTERNAL_MMXEXT(cpu_flags)) {
yadif->filter_line = ff_yadif_filter_line_mmxext;