comparison x86/mpegvideo_mmx.c @ 12414:3fc4c625b6f3 libavcodec

Remove global mm_flags variable
author mru
date Tue, 24 Aug 2010 17:47:05 +0000
parents 7f594601d5e9
children a5ddb39627fd
comparison
equal deleted inserted replaced
12413:e6e4059ea421 12414:3fc4c625b6f3
623 #include "mpegvideo_mmx_template.c" 623 #include "mpegvideo_mmx_template.c"
624 #endif 624 #endif
625 625
626 void MPV_common_init_mmx(MpegEncContext *s) 626 void MPV_common_init_mmx(MpegEncContext *s)
627 { 627 {
628 int mm_flags = mm_support();
629
628 if (mm_flags & FF_MM_MMX) { 630 if (mm_flags & FF_MM_MMX) {
629 const int dct_algo = s->avctx->dct_algo; 631 const int dct_algo = s->avctx->dct_algo;
630 632
631 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx; 633 s->dct_unquantize_h263_intra = dct_unquantize_h263_intra_mmx;
632 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx; 634 s->dct_unquantize_h263_inter = dct_unquantize_h263_inter_mmx;