aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/fmtconvert_mmx.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-01-30 09:39:16 +0100
committerDiego Biurrun <diego@biurrun.de>2012-01-30 23:58:23 +0100
commitc30b198381706e94aab1097e49d2638763312b05 (patch)
tree194d5618fabc33618f537f06ae44d11cbe3c6255 /libavcodec/x86/fmtconvert_mmx.c
parent75ab1e62d4187c8ad627835ee8fcf38501477caf (diff)
downloadffmpeg-c30b198381706e94aab1097e49d2638763312b05.tar.gz
x86: Place mm_flags variable declaration below the appropriate #ifdef.
This fixes some unused variable warnings with YASM disabled.
Diffstat (limited to 'libavcodec/x86/fmtconvert_mmx.c')
-rw-r--r--libavcodec/x86/fmtconvert_mmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/fmtconvert_mmx.c b/libavcodec/x86/fmtconvert_mmx.c
index 17079d3c82..42cb0bc85b 100644
--- a/libavcodec/x86/fmtconvert_mmx.c
+++ b/libavcodec/x86/fmtconvert_mmx.c
@@ -110,9 +110,9 @@ static void float_interleave_sse(float *dst, const float **src,
void ff_fmt_convert_init_x86(FmtConvertContext *c, AVCodecContext *avctx)
{
+#if HAVE_YASM
int mm_flags = av_get_cpu_flags();
-#if HAVE_YASM
if (mm_flags & AV_CPU_FLAG_MMX) {
c->float_interleave = float_interleave_mmx;