[FFmpeg-cvslog] ppc: fix build with altivec disabled
Mans Rullgard
git at videolan.org
Wed Jul 18 22:44:50 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Wed Jul 18 13:22:46 2012 +0100| [ffdd93a25e64db82c053577f415ea82c54fd5235] | committer: Mans Rullgard
ppc: fix build with altivec disabled
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ffdd93a25e64db82c053577f415ea82c54fd5235
---
libavcodec/ppc/vp3dsp_altivec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/ppc/vp3dsp_altivec.c b/libavcodec/ppc/vp3dsp_altivec.c
index 0c493e9..75a3677 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
}
More information about the ffmpeg-cvslog
mailing list