[FFmpeg-cvslog] dirac: Only use MMX if MMX is available.
Michael Niedermayer
git at videolan.org
Mon Jan 28 20:56:06 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jan 28 20:00:55 2013 +0100| [5c9cae744752932d46fd847fa4161790620daccf] | committer: Michael Niedermayer
dirac: Only use MMX if MMX is available.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c9cae744752932d46fd847fa4161790620daccf
---
libavcodec/x86/diracdsp_mmx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/x86/diracdsp_mmx.c b/libavcodec/x86/diracdsp_mmx.c
index ee89295..cb6465f 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
More information about the ffmpeg-cvslog
mailing list