diff options
author | Mans Rullgard <mans@mansr.com> | 2011-07-20 23:01:56 +0400 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-07-21 21:10:58 +0400 |
commit | 0a72533e9854aa615bb6d1569dd5f0c4cd031429 (patch) | |
tree | 78c7bae61e8857170f174d4fdd114808f3bae514 /libavcodec/x86 | |
parent | 73c0dd939d503aaf83d3266181a156615eeb77d5 (diff) |
jfdctint: add 10-bit version
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/dsputilenc_mmx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/x86/dsputilenc_mmx.c b/libavcodec/x86/dsputilenc_mmx.c index 037389137b..ea03e9232f 100644 --- a/libavcodec/x86/dsputilenc_mmx.c +++ b/libavcodec/x86/dsputilenc_mmx.c @@ -1101,7 +1101,8 @@ void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx) if (mm_flags & AV_CPU_FLAG_MMX) { const int dct_algo = avctx->dct_algo; - if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){ + if (avctx->bits_per_raw_sample <= 8 && + (dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX)) { if(mm_flags & AV_CPU_FLAG_SSE2){ c->fdct = ff_fdct_sse2; }else if(mm_flags & AV_CPU_FLAG_MMX2){ |