diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-01-29 01:15:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-01-29 01:15:25 +0000 |
commit | 8fd19ab286ea352eff0e2162d0fc5e49fb21110e (patch) | |
tree | 1fb25543328acbe9551c253c878ab3ec999c8999 /libavcodec/i386/dsputil_mmx.c | |
parent | 5a60360712c331b329e4f6e122b87bd288b20819 (diff) | |
download | ffmpeg-8fd19ab286ea352eff0e2162d0fc5e49fb21110e.tar.gz |
SSE2 fdct by (Balatoni Denes <pnis at coder dot hu>)
Originally committed as revision 2729 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.c')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 4ff75f763e..6c6f108372 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -2032,7 +2032,9 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) #ifdef CONFIG_ENCODERS if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){ - if(mm_flags & MM_MMXEXT){ + if(mm_flags & MM_SSE2){ + c->fdct = ff_fdct_sse2; + }else if(mm_flags & MM_MMXEXT){ c->fdct = ff_fdct_mmx2; }else{ c->fdct = ff_fdct_mmx; |