diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-08 14:36:13 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-08 14:36:13 +0000 |
commit | 9ec7458ddfe3da9537f225e35670d99f98b654eb (patch) | |
tree | 234ad322da3caf74eb14f9d257ed4cb4e962aec3 /libavcodec/libxvidff.c | |
parent | 539ff40c2d685508c62f040693df0f0facda39ff (diff) | |
download | ffmpeg-9ec7458ddfe3da9537f225e35670d99f98b654eb.tar.gz |
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.
Originally committed as revision 25075 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libxvidff.c')
-rw-r--r-- | libavcodec/libxvidff.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c index 37f616163d..2079b14f20 100644 --- a/libavcodec/libxvidff.c +++ b/libavcodec/libxvidff.c @@ -31,6 +31,7 @@ #include <xvid.h> #include <unistd.h> #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 @@ 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( has_altivec() ) { + if (mm_support() & AV_CPU_FLAG_ALTIVEC) { xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC; } else #endif |