[FFmpeg-devel] [PATCH] vorbis/x86: put vorbis_inverse_coupling_sse under HAVE_INLINE_SSE

Michael Niedermayer michaelni at gmx.at
Tue Jan 22 02:36:18 CET 2013


Fixes Ticket2164

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavcodec/x86/vorbisdsp_init.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavcodec/x86/vorbisdsp_init.c b/libavcodec/x86/vorbisdsp_init.c
index 1ba04b5..f59c3f8 100644
--- a/libavcodec/x86/vorbisdsp_init.c
+++ b/libavcodec/x86/vorbisdsp_init.c
@@ -55,6 +55,7 @@ static void vorbis_inverse_coupling_3dnow(float *mag, float *ang,
 }
 #endif
 
+#if HAVE_SSE_INLINE
 static void vorbis_inverse_coupling_sse(float *mag, float *ang,
                                         intptr_t blocksize)
 {
@@ -87,6 +88,7 @@ static void vorbis_inverse_coupling_sse(float *mag, float *ang,
     }
 }
 #endif
+#endif
 
 void ff_vorbisdsp_init_x86(VorbisDSPContext *dsp)
 {
@@ -97,7 +99,9 @@ void ff_vorbisdsp_init_x86(VorbisDSPContext *dsp)
     if (mm_flags & AV_CPU_FLAG_3DNOW)
         dsp->vorbis_inverse_coupling = vorbis_inverse_coupling_3dnow;
 #endif /* ARCH_X86_32 */
+#if HAVE_SSE_INLINE
     if (mm_flags & AV_CPU_FLAG_SSE)
         dsp->vorbis_inverse_coupling = vorbis_inverse_coupling_sse;
+#endif /* HAVE_SSE_INLINE */
 #endif /* HAVE_INLINE_ASM */
 }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list