[FFmpeg-cvslog] r25075 - trunk/libavcodec/libxvidff.c

stefano subversion
Wed Sep 8 16:36:13 CEST 2010


Author: stefano
Date: Wed Sep  8 16:36:13 2010
New Revision: 25075

Log:
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.

Modified:
   trunk/libavcodec/libxvidff.c

Modified: trunk/libavcodec/libxvidff.c
==============================================================================
--- trunk/libavcodec/libxvidff.c	Wed Sep  8 12:02:40 2010	(r25074)
+++ trunk/libavcodec/libxvidff.c	Wed Sep  8 16:36:13 2010	(r25075)
@@ -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(AVCo
 #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



More information about the ffmpeg-cvslog mailing list