From f7813a5324be39d13ab536c245d15dfc602a7849 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sun, 29 Dec 2013 12:19:38 +0000 Subject: basic type mechanism working --- ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c') diff --git a/ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c b/ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c index 08a2b26..d243bf6 100644 --- a/ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c +++ b/ffmpeg/libavcodec/ppc/vorbisdsp_altivec.c @@ -54,8 +54,9 @@ static void vorbis_inverse_coupling_altivec(float *mag, float *ang, av_cold void ff_vorbisdsp_init_ppc(VorbisDSPContext *c) { #if HAVE_ALTIVEC - if (av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC) { - c->vorbis_inverse_coupling = vorbis_inverse_coupling_altivec; - } + if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC)) + return; + + c->vorbis_inverse_coupling = vorbis_inverse_coupling_altivec; #endif /* HAVE_ALTIVEC */ } -- cgit v1.2.3