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

Message ID 1347525643-28361-1-git-send-email-martin@martin.st
State Committed
Commit 91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7
Headers show

Commit Message

Martin Storsjö Sept. 13, 2012, 8:40 a.m.
This fixes building without inline assembly.
---
 libavcodec/x86/ac3dsp_init.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Luca Barbato Sept. 13, 2012, 8:55 a.m. | #1
On 9/13/12 10:40 AM, Martin Storsjö wrote:
> This fixes building without inline assembly.
> ---
>   libavcodec/x86/ac3dsp_init.c |    2 ++
>   1 file changed, 2 insertions(+)


Ok.
Diego Biurrun Sept. 13, 2012, 10:17 a.m. | #2
On Thu, Sep 13, 2012 at 11:40:43AM +0300, Martin Storsjö wrote:
> This fixes building without inline assembly.
> ---
>  libavcodec/x86/ac3dsp_init.c |    2 ++
>  1 file changed, 2 insertions(+)

OK

Diego

Patch

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
 }