diff options
author | Måns Rullgård <mans@mansr.com> | 2010-08-24 21:47:05 +0400 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2010-08-24 21:47:05 +0400 |
commit | c0ec9918b066c6bfca8613ac75b589bd3e405971 (patch) | |
tree | d037260d347ffce71a1ccdbaca81174e190a25d1 /libavcodec/ppc | |
parent | 3611c45ab757d03cf3878af62ca1c19ae8386037 (diff) |
Remove global mm_flags variable
Originally committed as revision 24909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc')
-rw-r--r-- | libavcodec/ppc/dsputil_ppc.c | 4 | ||||
-rw-r--r-- | libavcodec/ppc/mpegvideo_altivec.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/libavcodec/ppc/dsputil_ppc.c b/libavcodec/ppc/dsputil_ppc.c index 229ca09960..4f1c501c77 100644 --- a/libavcodec/ppc/dsputil_ppc.c +++ b/libavcodec/ppc/dsputil_ppc.c @@ -23,8 +23,6 @@ #include "libavcodec/dsputil.h" #include "dsputil_altivec.h" -int mm_flags = 0; - int mm_support(void) { int result = 0; @@ -182,8 +180,6 @@ void dsputil_init_ppc(DSPContext* c, AVCodecContext *avctx) if(CONFIG_H264_DECODER) dsputil_h264_init_ppc(c, avctx); if (has_altivec()) { - mm_flags |= FF_MM_ALTIVEC; - dsputil_init_altivec(c, avctx); if(CONFIG_VC1_DECODER) vc1dsp_init_altivec(c, avctx); diff --git a/libavcodec/ppc/mpegvideo_altivec.c b/libavcodec/ppc/mpegvideo_altivec.c index 0126b7f42e..19d897fe66 100644 --- a/libavcodec/ppc/mpegvideo_altivec.c +++ b/libavcodec/ppc/mpegvideo_altivec.c @@ -570,7 +570,7 @@ static void dct_unquantize_h263_altivec(MpegEncContext *s, void MPV_common_init_altivec(MpegEncContext *s) { - if ((mm_flags & FF_MM_ALTIVEC) == 0) return; + if (!has_altivec()) return; if (s->avctx->lowres==0) { if ((s->avctx->idct_algo == FF_IDCT_AUTO) || |