diff options
author | Diego Biurrun <diego@biurrun.de> | 2012-01-30 12:39:16 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2012-01-31 02:58:23 +0400 |
commit | c30b198381706e94aab1097e49d2638763312b05 (patch) | |
tree | 194d5618fabc33618f537f06ae44d11cbe3c6255 /libavcodec/x86 | |
parent | 75ab1e62d4187c8ad627835ee8fcf38501477caf (diff) |
x86: Place mm_flags variable declaration below the appropriate #ifdef.
This fixes some unused variable warnings with YASM disabled.
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/fmtconvert_mmx.c | 2 | ||||
-rw-r--r-- | libavcodec/x86/rv40dsp.c | 4 |
2 files changed, 3 insertions, 3 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; diff --git a/libavcodec/x86/rv40dsp.c b/libavcodec/x86/rv40dsp.c index 9f90ad8bb6..b429de7293 100644 --- a/libavcodec/x86/rv40dsp.c +++ b/libavcodec/x86/rv40dsp.c @@ -42,9 +42,9 @@ void ff_avg_rv40_chroma_mc4_3dnow(uint8_t *dst, uint8_t *src, void ff_rv40dsp_init_x86(RV34DSPContext *c, DSPContext *dsp) { - av_unused int mm_flags = av_get_cpu_flags(); - #if HAVE_YASM + int mm_flags = av_get_cpu_flags(); + if (mm_flags & AV_CPU_FLAG_MMX) { c->put_chroma_pixels_tab[0] = ff_put_rv40_chroma_mc8_mmx; c->put_chroma_pixels_tab[1] = ff_put_rv40_chroma_mc4_mmx; |