[FFmpeg-devel] [PATCH] mips: Fixing HAVE_MIPSFPU dependencies

Bojan Zivkovic bojan at mips.com
Wed Nov 21 14:00:28 CET 2012


Signed-off-by: Bojan Zivkovic <bojan at mips.com>
---
 libavutil/mips/Makefile         |    2 +-
 libavutil/mips/float_dsp_mips.c |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/libavutil/mips/Makefile b/libavutil/mips/Makefile
index d8abef4..dbfa5aa 100644
--- a/libavutil/mips/Makefile
+++ b/libavutil/mips/Makefile
@@ -1 +1 @@
-MIPSFPU-OBJS-$(HAVE_INLINE_ASM) += mips/float_dsp_mips.o
+OBJS += mips/float_dsp_mips.o
diff --git a/libavutil/mips/float_dsp_mips.c b/libavutil/mips/float_dsp_mips.c
index 30ed20f..8c3611d 100644
--- a/libavutil/mips/float_dsp_mips.c
+++ b/libavutil/mips/float_dsp_mips.c
@@ -50,8 +50,10 @@
  * Reference: libavutil/float_dsp.c
  */
 
+#include "config.h"
 #include "libavutil/float_dsp.h"
 
+#if HAVE_INLINE_ASM && HAVE_MIPSFPU
 static void vector_fmul_mips(float *dst, const float *src0, const float *src1,
                              int len)
 {
@@ -102,7 +104,10 @@ static void vector_fmul_mips(float *dst, const float *src0, const float *src1,
         );
     }
 }
+#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */
 
 void ff_float_dsp_init_mips(AVFloatDSPContext *fdsp) {
+#if HAVE_INLINE_ASM && HAVE_MIPSFPU
     fdsp->vector_fmul = vector_fmul_mips;
+#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */
 }
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list