# HG changeset patch # User stefano # Date 1283956573 0 # Node ID cf54b8e98e7a59d3c86c1aa6282e13d2aa67d03e # Parent 06abedae2906f53f5083e2ee3376ec3b0584006e Remove reference to not anymore existing symbol has_altivec and use mm_support instead. Fix compilation if altivec is present and libxvidff.c is compiled. diff -r 06abedae2906 -r cf54b8e98e7a libxvidff.c --- a/libxvidff.c Wed Sep 08 10:02:40 2010 +0000 +++ b/libxvidff.c Wed Sep 08 14:36:13 2010 +0000 @@ -31,6 +31,7 @@ #include #include #include "avcodec.h" +#include "dsputil.h" #include "libavutil/intreadwrite.h" #include "libxvid_internal.h" #if !HAVE_MKSTEMP @@ -44,9 +45,6 @@ #define BUFFER_REMAINING(x) (BUFFER_SIZE - strlen(x)) #define BUFFER_CAT(x) (&((x)[strlen(x)])) -/* For PPC Use */ -int has_altivec(void); - /** * Structure for the private Xvid context. * This stores all the private context for the codec. @@ -215,7 +213,7 @@ #if ARCH_PPC /* Xvid's PPC support is borked, use libavcodec to detect */ #if HAVE_ALTIVEC - if( has_altivec() ) { + if (mm_support() & AV_CPU_FLAG_ALTIVEC) { xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC; } else #endif