summaryrefslogtreecommitdiff
path: root/libavcodec/x86/mpegvideo_mmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/x86/mpegvideo_mmx.c')
-rw-r--r--libavcodec/x86/mpegvideo_mmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/mpegvideo_mmx.c b/libavcodec/x86/mpegvideo_mmx.c
index 5deb68d28d..3556e1caa7 100644
--- a/libavcodec/x86/mpegvideo_mmx.c
+++ b/libavcodec/x86/mpegvideo_mmx.c
@@ -625,6 +625,8 @@ static void denoise_dct_sse2(MpegEncContext *s, DCTELEM *block){
void MPV_common_init_mmx(MpegEncContext *s)
{
+ int mm_flags = mm_support();
+
if (mm_flags & FF_MM_MMX) {
const int dct_algo = s->avctx->dct_algo;