aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2003-03-07 13:49:10 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2003-03-07 13:49:10 +0000
commit63f6082633e0ffbfe2ea8327197ecc63101f7d7d (patch)
treeb4201f6b85389b4569f83bae98d4509280348881
parentbec89a840f65c60631c6856411ddd67ee6d55506 (diff)
downloadffmpeg-63f6082633e0ffbfe2ea8327197ecc63101f7d7d.tar.gz
* support FF_MM_FORCE
Originally committed as revision 1643 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/i386/dsputil_mmx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index 906a5effa1..b937ef5565 100644
--- a/libavcodec/i386/dsputil_mmx.c
+++ b/libavcodec/i386/dsputil_mmx.c
@@ -1440,6 +1440,12 @@ static void ff_libmpeg2mmx2_idct_add(uint8_t *dest, int line_size, DCTELEM *bloc
void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx)
{
mm_flags = mm_support();
+
+ if (avctx->dsp_mask && FF_MM_FORCE)
+ mm_flags |= (avctx->dsp_mask & 0xffff);
+ else
+ mm_flags &= (avctx->dsp_mask & 0xffff);
+
#if 0
fprintf(stderr, "libavcodec: CPU flags:");
if (mm_flags & MM_MMX)