aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-28 20:00:55 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-01-28 20:00:55 +0100
commit5c9cae744752932d46fd847fa4161790620daccf (patch)
treeb8ab4812ca38ff0cd242a2e98b59b259f19d4f91 /libavcodec
parent8c4aebb58d00fd613f3f684bf0f869966149ae78 (diff)
downloadffmpeg-5c9cae744752932d46fd847fa4161790620daccf.tar.gz
dirac: Only use MMX if MMX is available.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/x86/diracdsp_mmx.c3
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