diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2004-04-26 08:51:56 +0000 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2004-04-26 08:51:56 +0000 |
commit | d890d4aed1c38c99a07c4f10e45b6369499f00fc (patch) | |
tree | 1b26a28418216d3caef93956bf7d60e12ffc5252 /libavcodec/ppc/dsputil_ppc.c | |
parent | 16f5ef9c70a908f7457dfc619316f469fe55c60e (diff) | |
download | ffmpeg-d890d4aed1c38c99a07c4f10e45b6369499f00fc.tar.gz |
disable hadamard for gcc below 3.3 - better fix awaited
Originally committed as revision 3075 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/dsputil_ppc.c')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index b70de73289..55a4587f95 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -279,8 +279,10 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) c->gmc1 = gmc1_altivec; +#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 330) c->hadamard8_diff[0] = hadamard8_diff16_altivec; c->hadamard8_diff[1] = hadamard8_diff8x8_altivec; +#endif #ifdef CONFIG_ENCODERS if (avctx->dct_algo == FF_DCT_AUTO || |