aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/vp3dsp_altivec.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-06-05 08:46:47 -0700
committerDiego Biurrun <diego@biurrun.de>2014-06-10 15:13:57 -0700
commit27860819d508068f056cf48473af04868791ad77 (patch)
tree9916fd30fcf28bdd64424daf8021d57686338fef /libavcodec/ppc/vp3dsp_altivec.c
parent205fdd4ea5e1264946917a26fde01e137a485f5a (diff)
downloadffmpeg-27860819d508068f056cf48473af04868791ad77.tar.gz
ppc: Consistently use convenience macro for runtime CPU detection
Diffstat (limited to 'libavcodec/ppc/vp3dsp_altivec.c')
-rw-r--r--libavcodec/ppc/vp3dsp_altivec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/ppc/vp3dsp_altivec.c b/libavcodec/ppc/vp3dsp_altivec.c
index 612e6e486e..bce49e3170 100644
--- a/libavcodec/ppc/vp3dsp_altivec.c
+++ b/libavcodec/ppc/vp3dsp_altivec.c
@@ -23,6 +23,7 @@
#include "config.h"
#include "libavutil/attributes.h"
#include "libavutil/cpu.h"
+#include "libavutil/ppc/cpu.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/vp3dsp.h"
@@ -179,7 +180,7 @@ static void vp3_idct_add_altivec(uint8_t *dst, int stride, int16_t block[64])
av_cold void ff_vp3dsp_init_ppc(VP3DSPContext *c, int flags)
{
#if HAVE_ALTIVEC
- if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ if (!PPC_ALTIVEC(av_get_cpu_flags()))
return;
c->idct_put = vp3_idct_put_altivec;