diff ppc/mpegvideo_altivec.c @ 12473:06abedae2906 libavcodec

Merge has_altivec() function into mm_support(), remove it and use mm_support() instead. Reduce complexity and simplify pending move to libavutil.
author stefano
date Wed, 08 Sep 2010 10:02:40 +0000
parents 3fc4c625b6f3
children 9fef0a8ddd63
line wrap: on
line diff
--- a/ppc/mpegvideo_altivec.c	Wed Sep 08 05:51:31 2010 +0000
+++ b/ppc/mpegvideo_altivec.c	Wed Sep 08 10:02:40 2010 +0000
@@ -570,7 +570,7 @@
 
 void MPV_common_init_altivec(MpegEncContext *s)
 {
-    if (!has_altivec()) return;
+    if (!(mm_support() & AV_CPU_FLAG_ALTIVEC)) return;
 
     if (s->avctx->lowres==0) {
         if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||