aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/proresdsp-init.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-14 19:30:10 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-14 19:48:41 +0200
commit337496980e8ea75a123921a5a215ae8a962bf128 (patch)
treec9a657ba9d79e1adf971fda72048a368e96f39dc /libavcodec/x86/proresdsp-init.c
parent530d8529d05da930787944df960bebadd1f14e3b (diff)
downloadffmpeg-337496980e8ea75a123921a5a215ae8a962bf128.tar.gz
prores: use C idct for fate as the SSE code is not matching the SSE* code down at the bits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/proresdsp-init.c')
-rw-r--r--libavcodec/x86/proresdsp-init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/x86/proresdsp-init.c b/libavcodec/x86/proresdsp-init.c
index ef5389c05e..83e6034e57 100644
--- a/libavcodec/x86/proresdsp-init.c
+++ b/libavcodec/x86/proresdsp-init.c
@@ -29,11 +29,14 @@ void ff_prores_idct_put_10_sse4(uint16_t *dst, int linesize,
void ff_prores_idct_put_10_avx (uint16_t *dst, int linesize,
DCTELEM *block);
-void ff_proresdsp_x86_init(ProresDSPContext *dsp)
+void ff_proresdsp_x86_init(ProresDSPContext *dsp, AVCodecContext *avctx)
{
#if ARCH_X86_64 && HAVE_YASM
int flags = av_get_cpu_flags();
+ if(avctx->flags & CODEC_FLAG_BITEXACT)
+ return;
+
if (flags & AV_CPU_FLAG_SSE2) {
dsp->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
dsp->idct_put = ff_prores_idct_put_10_sse2;