diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-15 01:35:47 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-15 01:46:21 +0200 |
commit | 1bf8fa75ee148f40938d47bb9aaf53ac3c1ae126 (patch) | |
tree | 0154ad13345204c722797bb7b5836cd4548e803b | |
parent | a06dcde5073be05ce5e53791480d0ea1db0bfc8e (diff) | |
download | ffmpeg-1bf8fa75ee148f40938d47bb9aaf53ac3c1ae126.tar.gz |
avcodec/x86/dsputil_init: fix cpu flag checks
Fixes linking failure with --disable-sse2
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/x86/dsputil_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/x86/dsputil_init.c b/libavcodec/x86/dsputil_init.c index df7918a237..616cffcfbb 100644 --- a/libavcodec/x86/dsputil_init.c +++ b/libavcodec/x86/dsputil_init.c @@ -693,12 +693,12 @@ av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx) c->idct = ff_simple_idct_mmx; c->idct_permutation_type = FF_SIMPLE_IDCT_PERM; } else if (idct_algo == FF_IDCT_XVIDMMX) { - if (cpu_flags & AV_CPU_FLAG_SSE2) { + if (X86_SSE2(cpu_flags)) { c->idct_put = ff_idct_xvid_sse2_put; c->idct_add = ff_idct_xvid_sse2_add; c->idct = ff_idct_xvid_sse2; c->idct_permutation_type = FF_SSE2_IDCT_PERM; - } else if (cpu_flags & AV_CPU_FLAG_MMXEXT) { + } else if (X86_MMXEXT(cpu_flags)) { c->idct_put = ff_idct_xvid_mmxext_put; c->idct_add = ff_idct_xvid_mmxext_add; c->idct = ff_idct_xvid_mmxext; |