mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-25 16:52:31 +00:00
x86: mpegvideoenc: fix linking with --disable-mmx
The optimized dct_quantize template functions reference optimized fdct symbols, so these functions must only be enabled if the relevant optimizations have been enabled by configure.
This commit is contained in:
parent
d39791bf39
commit
2f2aa2e542
@ -89,11 +89,11 @@ void ff_MPV_encode_init_x86(MpegEncContext *s)
|
||||
s->dct_quantize = dct_quantize_SSSE3;
|
||||
} else
|
||||
#endif
|
||||
if (mm_flags & AV_CPU_FLAG_SSE2) {
|
||||
if (mm_flags & AV_CPU_FLAG_SSE2 && HAVE_SSE) {
|
||||
s->dct_quantize = dct_quantize_SSE2;
|
||||
} else if (mm_flags & AV_CPU_FLAG_MMXEXT) {
|
||||
} else if (mm_flags & AV_CPU_FLAG_MMXEXT && HAVE_MMXEXT) {
|
||||
s->dct_quantize = dct_quantize_MMX2;
|
||||
} else {
|
||||
} else if (mm_flags & AV_CPU_FLAG_MMX && HAVE_MMX) {
|
||||
s->dct_quantize = dct_quantize_MMX;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user