Mercurial > libavcodec.hg
diff libxvidff.c @ 12475:9fef0a8ddd63 libavcodec
Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().
author | stefano |
---|---|
date | Wed, 08 Sep 2010 15:07:14 +0000 |
parents | cf54b8e98e7a |
children |
line wrap: on
line diff
--- a/libxvidff.c Wed Sep 08 14:36:13 2010 +0000 +++ b/libxvidff.c Wed Sep 08 15:07:14 2010 +0000 @@ -31,7 +31,7 @@ #include <xvid.h> #include <unistd.h> #include "avcodec.h" -#include "dsputil.h" +#include "libavutil/cpu.h" #include "libavutil/intreadwrite.h" #include "libxvid_internal.h" #if !HAVE_MKSTEMP @@ -213,7 +213,7 @@ #if ARCH_PPC /* Xvid's PPC support is borked, use libavcodec to detect */ #if HAVE_ALTIVEC - if (mm_support() & AV_CPU_FLAG_ALTIVEC) { + if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC; } else #endif