summaryrefslogtreecommitdiff
path: root/libavcodec/x86/mpegvideoenc.c
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 /libavcodec/x86/mpegvideoenc.c
parent10f1a4d9bd8239ac64f364e0d3b6423c28230d6d (diff)
x86: Move some conditional code around to avoid unused variable warnings
Diffstat (limited to 'libavcodec/x86/mpegvideoenc.c')
-rw-r--r--libavcodec/x86/mpegvideoenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/mpegvideoenc.c b/libavcodec/x86/mpegvideoenc.c
index c32c0ce2b6..7ecb5d49a6 100644
--- a/libavcodec/x86/mpegvideoenc.c
+++ b/libavcodec/x86/mpegvideoenc.c
@@ -83,11 +83,11 @@ extern uint16_t ff_inv_zigzag_direct16[64];
av_cold void ff_MPV_encode_init_x86(MpegEncContext *s)
{
- int mm_flags = av_get_cpu_flags();
const int dct_algo = s->avctx->dct_algo;
if (dct_algo == FF_DCT_AUTO || dct_algo == FF_DCT_MMX) {
#if HAVE_MMX_INLINE
+ int mm_flags = av_get_cpu_flags();
if (INLINE_MMX(mm_flags))
s->dct_quantize = dct_quantize_MMX;
#endif