mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/x86/dsputil_init: fix cpu flag checks
Fixes linking failure with --disable-sse2 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
a06dcde507
commit
1bf8fa75ee
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user