aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/vp8dsp_altivec.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-08 10:02:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-09-08 10:02:40 +0000
commitccf22d3ed181a14019d0c2f02f2ce30ac8e23ef5 (patch)
tree02f9099d3a8ab792a8d69167eb8c23a5e8d6a4cc /libavcodec/ppc/vp8dsp_altivec.c
parent83f72f138e64b596dce1b543d6af3cf66d300e90 (diff)
downloadffmpeg-ccf22d3ed181a14019d0c2f02f2ce30ac8e23ef5.tar.gz
Merge has_altivec() function into mm_support(), remove it and use
mm_support() instead. Reduce complexity and simplify pending move to libavutil. Originally committed as revision 25074 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/vp8dsp_altivec.c')
-rw-r--r--libavcodec/ppc/vp8dsp_altivec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ppc/vp8dsp_altivec.c b/libavcodec/ppc/vp8dsp_altivec.c
index f7b3cda7a4..b294154c6c 100644
--- a/libavcodec/ppc/vp8dsp_altivec.c
+++ b/libavcodec/ppc/vp8dsp_altivec.c
@@ -265,7 +265,7 @@ static void put_vp8_pixels16_altivec(uint8_t *dst, int stride, uint8_t *src, int
av_cold void ff_vp8dsp_init_altivec(VP8DSPContext *c)
{
- if (!has_altivec())
+ if (!(mm_support() & AV_CPU_FLAG_ALTIVEC))
return;
c->put_vp8_epel_pixels_tab[0][0][0] = put_vp8_pixels16_altivec;