[FFmpeg-cvslog] x86/lossless_audiodsp: fix compilation with --disable-yasm

James Almer git at videolan.org
Thu Feb 12 20:11:59 CET 2015


ffmpeg | branch: release/2.5 | James Almer <jamrial at gmail.com> | Fri Feb  6 03:46:43 2015 -0300| [ee902d3d2d78b1aed7d1c562d58128b450a54b02] | committer: Michael Niedermayer

x86/lossless_audiodsp: fix compilation with --disable-yasm

Reviewed-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: James Almer <jamrial at gmail.com>
(cherry picked from commit 383fddeec65f4cebcb197eae702dfefdc6192eb0)

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/x86/lossless_audiodsp_init.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/libavcodec/x86/lossless_audiodsp_init.c b/libavcodec/x86/lossless_audiodsp_init.c
index 2c13e1e..da1e9e8 100644
--- a/libavcodec/x86/lossless_audiodsp_init.c
+++ b/libavcodec/x86/lossless_audiodsp_init.c
@@ -31,32 +31,31 @@ int32_t ff_scalarproduct_and_madd_int16_ssse3(int16_t *v1, const int16_t *v2,
                                               const int16_t *v3,
                                               int order, int mul);
 
+#if HAVE_YASM
 static int32_t scalarproduct_and_madd_int16_sse2(int16_t *v1, const int16_t *v2,
                                                  const int16_t *v3,
                                                  int order, int mul)
 {
-#if HAVE_SSE2_EXTERNAL
     if (order & 8)
         return ff_scalarproduct_and_madd_int16_mmxext(v1, v2, v3, order, mul);
     else
         return ff_scalarproduct_and_madd_int16_sse2(v1, v2, v3, order, mul);
-#endif
 }
 
 static int32_t scalarproduct_and_madd_int16_ssse3(int16_t *v1, const int16_t *v2,
                                                   const int16_t *v3,
                                                   int order, int mul)
 {
-#if HAVE_SSSE3_EXTERNAL
     if (order & 8)
         return ff_scalarproduct_and_madd_int16_mmxext(v1, v2, v3, order, mul);
     else
         return ff_scalarproduct_and_madd_int16_ssse3(v1, v2, v3, order, mul);
-#endif
 }
+#endif
 
 av_cold void ff_llauddsp_init_x86(LLAudDSPContext *c)
 {
+#if HAVE_YASM
     int cpu_flags = av_get_cpu_flags();
 
     if (EXTERNAL_MMXEXT(cpu_flags))
@@ -68,4 +67,5 @@ av_cold void ff_llauddsp_init_x86(LLAudDSPContext *c)
     if (EXTERNAL_SSSE3(cpu_flags) &&
         !(cpu_flags & (AV_CPU_FLAG_SSE42 | AV_CPU_FLAG_3DNOW))) // cachesplit
         c->scalarproduct_and_madd_int16 = scalarproduct_and_madd_int16_ssse3;
+#endif
 }



More information about the ffmpeg-cvslog mailing list