summaryrefslogtreecommitdiff
path: root/libavcodec/ppc
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2007-10-02 10:22:22 +0000
committerDiego Biurrun <diego@biurrun.de>2007-10-02 10:22:22 +0000
commit465c9fdeebe32de6de0d68a869d971e704e95704 (patch)
tree449b6b749daadb7a88b6eeb53cfa3ee35db7563b /libavcodec/ppc
parent3303926c2f06841270281e7f5210c0c94292e089 (diff)
Remove pointless HAVE_ALTIVEC #ifdefs from a file that only contains AltiVec
optimizations and no general PPC optimizations. Instead make the file be compiled conditional to HAVE_ALTIVEC. Originally committed as revision 10637 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r--libavcodec/ppc/mpegvideo_ppc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libavcodec/ppc/mpegvideo_ppc.c b/libavcodec/ppc/mpegvideo_ppc.c
index 1499814ff8..3aa366482b 100644
--- a/libavcodec/ppc/mpegvideo_ppc.c
+++ b/libavcodec/ppc/mpegvideo_ppc.c
@@ -21,10 +21,7 @@
#include "dsputil.h"
#include "mpegvideo.h"
#include <time.h>
-
-#ifdef HAVE_ALTIVEC
#include "dsputil_altivec.h"
-#endif
extern int dct_quantize_altivec(MpegEncContext *s,
DCTELEM *block, int n,
@@ -38,9 +35,6 @@ extern void idct_add_altivec(uint8_t *dest, int line_size, int16_t *block);
void MPV_common_init_ppc(MpegEncContext *s)
{
-#ifdef HAVE_ALTIVEC
- if (has_altivec())
- {
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
@@ -78,10 +72,5 @@ void MPV_common_init_ppc(MpegEncContext *s)
s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;
}
- } else
-#endif
- {
- /* Non-AltiVec PPC optimisations here */
- }
}