diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-08 19:07:14 +0400 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-08 19:07:14 +0400 |
commit | c6c98d0897ce1e040d041a655fb3e7dc14e96c45 (patch) | |
tree | c4a37da46c09d39c84e91b7a9159633bc2a30d89 /libavcodec/libxvidff.c | |
parent | 9ec7458ddfe3da9537f225e35670d99f98b654eb (diff) |
Move mm_support() from libavcodec to libavutil, make it a public
function and rename it to av_get_cpu_flags().
Originally committed as revision 25076 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r-- | libavcodec/libxvidff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 2079b14f20..f8aeb9c8cb 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -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 @@ static av_cold int xvid_encode_init(AVCodecContext *avctx) { #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 |