[FFmpeg-cvslog] x86: ac3dsp: Only refer to the ac3_downmix_sse symbol if it has been declared

Martin Storsjö git at videolan.org
Thu Sep 13 15:41:22 CEST 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu Sep 13 11:18:25 2012 +0300| [91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7] | committer: Martin Storsjö

x86: ac3dsp: Only refer to the ac3_downmix_sse symbol if it has been declared

This fixes building without inline assembly.

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavcodec/x86/ac3dsp_init.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/x86/ac3dsp_init.c b/libavcodec/x86/ac3dsp_init.c
index b23a9a1..5008d65 100644
--- a/libavcodec/x86/ac3dsp_init.c
+++ b/libavcodec/x86/ac3dsp_init.c
@@ -205,7 +205,9 @@ av_cold void ff_ac3dsp_init_x86(AC3DSPContext *c, int bit_exact)
         }
     }
 
+#if HAVE_SSE_INLINE
     if (INLINE_SSE(mm_flags)) {
         c->downmix = ac3_downmix_sse;
     }
+#endif
 }



More information about the ffmpeg-cvslog mailing list