mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
x86: yadif: Mark mmxext optimizations as such
The yadif mmx optimizations contain the pmaxsw and pmaxub mmxext instructions, causing sigills on CPUs that do not support mmxext.
This commit is contained in:
parent
b829b4ce29
commit
d1505db067
@ -45,9 +45,9 @@ DECLARE_ASM_CONST(16, const xmm_reg, pw_1) = {0x0001000100010001ULL, 0x000100010
|
|||||||
#undef COMPILE_TEMPLATE_SSE
|
#undef COMPILE_TEMPLATE_SSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_MMX
|
#if HAVE_MMX2
|
||||||
#undef RENAME
|
#undef RENAME
|
||||||
#define RENAME(a) a ## _mmx
|
#define RENAME(a) a ## _mmx2
|
||||||
#include "yadif_template.c"
|
#include "yadif_template.c"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -58,9 +58,9 @@ av_cold void ff_yadif_init_x86(YADIFContext *yadif)
|
|||||||
int cpu_flags = av_get_cpu_flags();
|
int cpu_flags = av_get_cpu_flags();
|
||||||
|
|
||||||
#if HAVE_INLINE_ASM
|
#if HAVE_INLINE_ASM
|
||||||
#if HAVE_MMX
|
#if HAVE_MMX2
|
||||||
if (cpu_flags & AV_CPU_FLAG_MMX)
|
if (cpu_flags & AV_CPU_FLAG_MMX2)
|
||||||
yadif->filter_line = yadif_filter_line_mmx;
|
yadif->filter_line = yadif_filter_line_mmx2;
|
||||||
#endif
|
#endif
|
||||||
#if HAVE_SSE
|
#if HAVE_SSE
|
||||||
if (cpu_flags & AV_CPU_FLAG_SSE2)
|
if (cpu_flags & AV_CPU_FLAG_SSE2)
|
||||||
|
Loading…
Reference in New Issue
Block a user