summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-02-09 17:55:07 +0000
committerDiego Biurrun <diego@biurrun.de>2008-02-09 17:55:07 +0000
commit7bab3a26e43ab0d71470514df74916ff43765815 (patch)
tree071915040393ed69c7f63f08107249b67573073f /libavcodec
parentdc6340e048152870af58d2f005965aa8cf43fc90 (diff)
Use HAVE_ALTIVEC preprocessor conditionals like in the rest of FFmpeg.
Originally committed as revision 11886 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libxvidff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/libxvidff.c b/libavcodec/libxvidff.c
index d29177bda0..414471e4f7 100644
--- a/libavcodec/libxvidff.c
+++ b/libavcodec/libxvidff.c
@@ -38,7 +38,7 @@
#define BUFFER_CAT(x) (&((x)[strlen(x)]))
/* For PPC Use */
-#if HAVE_ALTIVEC==1
+#ifdef HAVE_ALTIVEC
extern int has_altivec(void);
#endif
@@ -169,7 +169,7 @@ int ff_xvid_encode_init(AVCodecContext *avctx) {
#ifdef ARCH_POWERPC
/* XviD's PPC support is borked, use libavcodec to detect */
-#if HAVE_ALTIVEC==1
+#ifdef HAVE_ALTIVEC
if( has_altivec() ) {
xvid_gbl_init.cpu_flags = XVID_CPU_FORCE | XVID_CPU_ALTIVEC;
} else