[FFmpeg-cvslog] dsputil x86: revert a test back to its previous value

Christophe GISQUET git at videolan.org
Sun Apr 29 22:52:26 CEST 2012


ffmpeg | branch: master | Christophe GISQUET <christophe.gisquet at gmail.com> | Wed Mar 28 23:22:22 2012 +0200| [e75d1d4f7321b097f4b09799bf28a22ad259fea6] | committer: Ronald S. Bultje

dsputil x86: revert a test back to its previous value

Commit 356ee8d caused the initial inversion.

Signed-off-by: Ronald S. Bultje <rsbultje at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e75d1d4f7321b097f4b09799bf28a22ad259fea6
---

 libavcodec/x86/dsputil_mmx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index 89be328..3ef19c5 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -2961,7 +2961,7 @@ static void dsputil_init_sse2(DSPContext *c, AVCodecContext *avctx,
     const int bit_depth      = avctx->bits_per_raw_sample;
     const int high_bit_depth = bit_depth > 8;
 
-    if (mm_flags & AV_CPU_FLAG_3DNOW) {
+    if (!(mm_flags & AV_CPU_FLAG_SSE2SLOW)) {
         // these functions are slower than mmx on AMD, but faster on Intel
         if (!high_bit_depth) {
             c->put_pixels_tab[0][0]        = put_pixels16_sse2;



More information about the ffmpeg-cvslog mailing list