You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/x86/cavsdsp: Put MMX code under mmx check
Without this the FPU state becomes trashed and causes mysterious fate failures with cpuflags=0 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -565,7 +565,9 @@ av_cold void ff_cavsdsp_init_x86(CAVSDSPContext *c, AVCodecContext *avctx)
|
|||||||
{
|
{
|
||||||
av_unused int cpu_flags = av_get_cpu_flags();
|
av_unused int cpu_flags = av_get_cpu_flags();
|
||||||
|
|
||||||
cavsdsp_init_mmx(c, avctx);
|
if (X86_MMX(cpu_flags))
|
||||||
|
cavsdsp_init_mmx(c, avctx);
|
||||||
|
|
||||||
#if HAVE_AMD3DNOW_INLINE
|
#if HAVE_AMD3DNOW_INLINE
|
||||||
if (INLINE_AMD3DNOW(cpu_flags))
|
if (INLINE_AMD3DNOW(cpu_flags))
|
||||||
cavsdsp_init_3dnow(c, avctx);
|
cavsdsp_init_3dnow(c, avctx);
|
||||||
|
Reference in New Issue
Block a user