From 3bbd2123d63be15678b5d8b0409e186f3f47d978 Mon Sep 17 00:00:00 2001 From: "Steven M. Schultz" Date: Sat, 11 Oct 2003 08:25:23 +0000 Subject: [PATCH] recommit (of patch, as cvslog msg didnt apply cleanly) libavcodec/ppc compile errors patch by ("Steven M. Schultz" ) Originally committed as revision 2354 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/dsputil_ppc.c | 4 ++-- libavcodec/ppc/mpegvideo_ppc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index 73ae8b4a73..7af2aa0029 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -33,7 +33,7 @@ int mm_flags = 0; int mm_support(void) { int result = 0; -#if HAVE_ALTIVEC +#ifdef HAVE_ALTIVEC if (has_altivec()) { result |= MM_ALTIVEC; } @@ -233,7 +233,7 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) break; } -#if HAVE_ALTIVEC +#ifdef HAVE_ALTIVEC if (has_altivec()) { mm_flags |= MM_ALTIVEC; diff --git a/libavcodec/ppc/mpegvideo_ppc.c b/libavcodec/ppc/mpegvideo_ppc.c index 2bdf06b36e..de8220b494 100644 --- a/libavcodec/ppc/mpegvideo_ppc.c +++ b/libavcodec/ppc/mpegvideo_ppc.c @@ -36,7 +36,7 @@ extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block); void MPV_common_init_ppc(MpegEncContext *s) { -#if HAVE_ALTIVEC +#ifdef HAVE_ALTIVEC if (has_altivec()) { if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||