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

Martin Storsjö git at libav.org
Thu Sep 13 13:02:21 CEST 2012


Module: libav
Branch: master
Commit: 91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7

Author:    Martin Storsjö <martin at martin.st>
Committer: Martin Storsjö <martin at martin.st>
Date:      Thu Sep 13 11:18:25 2012 +0300

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>

---

 libavcodec/x86/ac3dsp_init.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

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 libav-commits mailing list