aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/vc1dsp_altivec.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-02-17 14:45:03 -0500
committerRonald S. Bultje <rsbultje@gmail.com>2011-02-17 17:35:35 -0500
commit12802ec0601c3bd7b9c7a2503518e28fd5e7d744 (patch)
treed2be9175e9dc5354de32ebb147463ae552674174 /libavcodec/ppc/vc1dsp_altivec.c
parent0b16cdc3fa1d73056649abf43288be0a7624fdcc (diff)
downloadffmpeg-12802ec0601c3bd7b9c7a2503518e28fd5e7d744.tar.gz
dsputil: move VC1-specific stuff into VC1DSPContext.
Diffstat (limited to 'libavcodec/ppc/vc1dsp_altivec.c')
-rw-r--r--libavcodec/ppc/vc1dsp_altivec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/ppc/vc1dsp_altivec.c b/libavcodec/ppc/vc1dsp_altivec.c
index 5ffe9a5479..95774389a5 100644
--- a/libavcodec/ppc/vc1dsp_altivec.c
+++ b/libavcodec/ppc/vc1dsp_altivec.c
@@ -322,7 +322,11 @@ static void vc1_inv_trans_8x4_altivec(uint8_t *dest, int stride, DCTELEM *block)
}
-void vc1dsp_init_altivec(DSPContext* dsp, AVCodecContext *avctx) {
+void ff_vc1dsp_init_altivec(VC1DSPContext* dsp)
+{
+ if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
+ return;
+
dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
}