Mercurial > libavcodec.hg
comparison x86/dsputilenc_mmx.c @ 12414:3fc4c625b6f3 libavcodec
Remove global mm_flags variable
author | mru |
---|---|
date | Tue, 24 Aug 2010 17:47:05 +0000 |
parents | fbf4d5b1b664 |
children | a5ddb39627fd |
comparison
equal
deleted
inserted
replaced
12413:e6e4059ea421 | 12414:3fc4c625b6f3 |
---|---|
1348 #endif //HAVE_SSSE3 | 1348 #endif //HAVE_SSSE3 |
1349 | 1349 |
1350 | 1350 |
1351 void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx) | 1351 void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx) |
1352 { | 1352 { |
1353 int mm_flags = mm_support(); | |
1354 | |
1353 if (mm_flags & FF_MM_MMX) { | 1355 if (mm_flags & FF_MM_MMX) { |
1354 const int dct_algo = avctx->dct_algo; | 1356 const int dct_algo = avctx->dct_algo; |
1355 if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){ | 1357 if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){ |
1356 if(mm_flags & FF_MM_SSE2){ | 1358 if(mm_flags & FF_MM_SSE2){ |
1357 c->fdct = ff_fdct_sse2; | 1359 c->fdct = ff_fdct_sse2; |