Mercurial > libavcodec.hg
diff arm/dsputil_iwmmxt.c @ 12414:3fc4c625b6f3 libavcodec
Remove global mm_flags variable
author | mru |
---|---|
date | Tue, 24 Aug 2010 17:47:05 +0000 |
parents | 08573f5f587d |
children | a5ddb39627fd |
line wrap: on
line diff
--- a/arm/dsputil_iwmmxt.c Tue Aug 24 16:52:27 2010 +0000 +++ b/arm/dsputil_iwmmxt.c Tue Aug 24 17:47:05 2010 +0000 @@ -150,10 +150,11 @@ /* A run time test is not simple. If this file is compiled in * then we should install the functions */ -int mm_flags = FF_MM_IWMMXT; /* multimedia extension flags */ void ff_dsputil_init_iwmmxt(DSPContext* c, AVCodecContext *avctx) { + int mm_flags = FF_MM_IWMMXT; /* multimedia extension flags */ + if (avctx->dsp_mask) { if (avctx->dsp_mask & FF_MM_FORCE) mm_flags |= (avctx->dsp_mask & 0xffff);