diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-28 20:00:55 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-28 20:00:55 +0100 |
commit | 5c9cae744752932d46fd847fa4161790620daccf (patch) | |
tree | b8ab4812ca38ff0cd242a2e98b59b259f19d4f91 | |
parent | 8c4aebb58d00fd613f3f684bf0f869966149ae78 (diff) | |
download | ffmpeg-5c9cae744752932d46fd847fa4161790620daccf.tar.gz |
dirac: Only use MMX if MMX is available.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/x86/diracdsp_mmx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/x86/diracdsp_mmx.c b/libavcodec/x86/diracdsp_mmx.c index ee89295c94..cb6465f950 100644 --- a/libavcodec/x86/diracdsp_mmx.c +++ b/libavcodec/x86/diracdsp_mmx.c @@ -60,6 +60,9 @@ void ff_diracdsp_init_mmx(DiracDSPContext* c) { int mm_flags = av_get_cpu_flags(); + if (!(mm_flags & AV_CPU_FLAG_MMX)) + return; + #if HAVE_YASM c->add_dirac_obmc[0] = ff_add_dirac_obmc8_mmx; #if !ARCH_X86_64 |