[FFmpeg-cvslog] diracdsp: Fix unprotected inline asm

Derek Buitenhuis git at videolan.org
Tue Sep 11 23:00:37 CEST 2012


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Sep 11 15:54:10 2012 -0400| [578bbf8149fcb0ae98055e67e6ab92f23384e6fe] | committer: Michael Niedermayer

diracdsp: Fix unprotected inline asm

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=578bbf8149fcb0ae98055e67e6ab92f23384e6fe
---

 libavcodec/x86/diracdsp_mmx.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/x86/diracdsp_mmx.c b/libavcodec/x86/diracdsp_mmx.c
index 693a9af..2a040da 100644
--- a/libavcodec/x86/diracdsp_mmx.c
+++ b/libavcodec/x86/diracdsp_mmx.c
@@ -71,12 +71,16 @@ void ff_diracdsp_init_mmx(DiracDSPContext* c)
 #endif
 #endif
 
+#if HAVE_MMX_INLINE
     PIXFUNC(put, 0, mmx);
     PIXFUNC(avg, 0, mmx);
+#endif
 
+#if HAVE_MMXEXT_INLINE
     if (mm_flags & AV_CPU_FLAG_MMX2) {
         PIXFUNC(avg, 0, mmx2);
     }
+#endif
 
     if (mm_flags & AV_CPU_FLAG_SSE2) {
 #if HAVE_YASM
@@ -87,9 +91,11 @@ void ff_diracdsp_init_mmx(DiracDSPContext* c)
         c->add_dirac_obmc[1] = ff_add_dirac_obmc16_sse2;
         c->add_dirac_obmc[2] = ff_add_dirac_obmc32_sse2;
 #endif
+#if HAVE_SSE2_INLINE
         c->put_dirac_pixels_tab[1][0] = ff_put_dirac_pixels16_sse2;
         c->avg_dirac_pixels_tab[1][0] = ff_avg_dirac_pixels16_sse2;
         c->put_dirac_pixels_tab[2][0] = ff_put_dirac_pixels32_sse2;
         c->avg_dirac_pixels_tab[2][0] = ff_avg_dirac_pixels32_sse2;
+#endif
     }
 }



More information about the ffmpeg-cvslog mailing list