diff options
author | Mans Rullgard <mans@mansr.com> | 2012-07-18 13:22:46 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-07-18 13:34:42 +0100 |
commit | ffdd93a25e64db82c053577f415ea82c54fd5235 (patch) | |
tree | bd7cba651966bfd2937cefb72c832cc373764788 /libavcodec/ppc | |
parent | 28f9ab7029bd1a02f659995919f899f84ee7361b (diff) | |
download | ffmpeg-ffdd93a25e64db82c053577f415ea82c54fd5235.tar.gz |
ppc: fix build with altivec disabled
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/vp3dsp_altivec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/ppc/vp3dsp_altivec.c b/libavcodec/ppc/vp3dsp_altivec.c index 0c493e98cd..75a36779ce 100644 --- a/libavcodec/ppc/vp3dsp_altivec.c +++ b/libavcodec/ppc/vp3dsp_altivec.c @@ -177,9 +177,11 @@ static void vp3_idct_add_altivec(uint8_t *dst, int stride, DCTELEM block[64]) av_cold void ff_vp3dsp_init_ppc(VP3DSPContext *c, int flags) { - if (HAVE_ALTIVEC && av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { +#if HAVE_ALTIVEC + if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { c->idct_put = vp3_idct_put_altivec; c->idct_add = vp3_idct_add_altivec; c->idct_perm = FF_TRANSPOSE_IDCT_PERM; } +#endif } |