The DCT init code takes care of MMX and other arch details on its own.
---
 libavcodec/mpeg4videodec.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index a4e7725..97dbcf6 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -2066,14 +2066,10 @@ static int decode_user_data(Mpeg4DecContext *ctx, 
GetBitContext *gb)
         ctx->divx_build   = -1;
     }
 
-#if HAVE_MMX
-    if (ctx->xvid_build >= 0                &&
-        s->avctx->idct_algo == FF_IDCT_AUTO &&
-        (av_get_cpu_flags() & AV_CPU_FLAG_MMX)) {
+    if (ctx->xvid_build >= 0 && s->avctx->idct_algo == FF_IDCT_AUTO) {
         s->avctx->idct_algo = FF_IDCT_XVIDMMX;
         ff_dct_common_init(s);
     }
-#endif
 
     return 0;
 }
-- 
1.8.3.2

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to