aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/dsputilenc_mmx.c
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-08-24 17:47:05 +0000
committerMåns Rullgård <mans@mansr.com>2010-08-24 17:47:05 +0000
commitc0ec9918b066c6bfca8613ac75b589bd3e405971 (patch)
treed037260d347ffce71a1ccdbaca81174e190a25d1 /libavcodec/x86/dsputilenc_mmx.c
parent3611c45ab757d03cf3878af62ca1c19ae8386037 (diff)
downloadffmpeg-c0ec9918b066c6bfca8613ac75b589bd3e405971.tar.gz
Remove global mm_flags variable
Originally committed as revision 24909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/x86/dsputilenc_mmx.c')
-rw-r--r--libavcodec/x86/dsputilenc_mmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c
index d3e412a3dc..bc24abadc7 100644
--- a/libavcodec/x86/dsputilenc_mmx.c
+++ b/libavcodec/x86/dsputilenc_mmx.c
@@ -1350,6 +1350,8 @@ static int ssd_int8_vs_int16_mmx(const int8_t *pix1, const int16_t *pix2, int si
void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx)
{
+ int mm_flags = mm_support();
+
if (mm_flags & FF_MM_MMX) {
const int dct_algo = avctx->dct_algo;
if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){