Mercurial > libavcodec.hg
changeset 1122:ddc3b0140b8f libavcodec
* oooooops - sorry for this one - wrong logic
empty dsp_mask - no change
FORCE - add, no FORCE - enabled bits are masked out
author | kabi |
---|---|
date | Mon, 10 Mar 2003 11:22:30 +0000 |
parents | dac5d55f4630 |
children | 9403cad8a1e8 |
files | i386/dsputil_mmx.c |
diffstat | 1 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/i386/dsputil_mmx.c Mon Mar 10 11:12:47 2003 +0000 +++ b/i386/dsputil_mmx.c Mon Mar 10 11:22:30 2003 +0000 @@ -1441,10 +1441,12 @@ { 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 (avctx->dsp_mask) { + 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:");