aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86/ac3dsp_init.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-09-13 11:18:25 +0300
committerMartin Storsjö <martin@martin.st>2012-09-13 13:51:52 +0300
commit91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7 (patch)
tree5ad0a4a01081519d3f58e90488ed69e95542d493 /libavcodec/x86/ac3dsp_init.c
parentb9141aa346b736adffd27e1a98bd12aa7b628a8f (diff)
downloadffmpeg-91ff4e83ca7f8cb64540ef2eb2c7e48b7e2cc8f7.tar.gz
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@martin.st>
Diffstat (limited to 'libavcodec/x86/ac3dsp_init.c')
-rw-r--r--libavcodec/x86/ac3dsp_init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/ac3dsp_init.c b/libavcodec/x86/ac3dsp_init.c
index b23a9a1aeb..5008d65676 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
}