aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-08-29 11:14:17 +0200
committerDiego Biurrun <diego@biurrun.de>2014-07-31 18:05:34 -0700
commit976f2e0a542e47aaf68ddbe001fb70a00bf96d99 (patch)
tree3d5e8037cc6d328b622380141d1ac1ad1a6359d8
parent28f2d3c5a5a3a3c14a68cf691054f15e4f23355a (diff)
downloadffmpeg-976f2e0a542e47aaf68ddbe001fb70a00bf96d99.tar.gz
x86: Fix linking with some or all of yasm, mmx, optimizations disabled
Some optimized template functions reference optimized symbols, so they must be explicitly disabled when those symbols are unavailable. (cherry picked from commit ec36aa69448f20a78d8c4588265022e0b2272ab5) Signed-off-by: Diego Biurrun <diego@biurrun.de>
-rw-r--r--libavcodec/x86/mpegaudiodec_mmx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/x86/mpegaudiodec_mmx.c b/libavcodec/x86/mpegaudiodec_mmx.c
index 06ffbca90a..7703a74a39 100644
--- a/libavcodec/x86/mpegaudiodec_mmx.c
+++ b/libavcodec/x86/mpegaudiodec_mmx.c
@@ -160,6 +160,7 @@ static void apply_window_mp3(float *in, float *win, int *unused, float *out,
}
+#if HAVE_YASM
#define DECL_IMDCT_BLOCKS(CPU1, CPU2) \
static void imdct36_blocks_ ## CPU1(float *out, float *buf, float *in, \
int count, int switch_point, int block_type) \
@@ -197,6 +198,7 @@ DECL_IMDCT_BLOCKS(sse2,sse)
DECL_IMDCT_BLOCKS(sse3,sse)
DECL_IMDCT_BLOCKS(ssse3,sse)
DECL_IMDCT_BLOCKS(avx,avx)
+#endif /* HAVE_YASM */
void ff_mpadsp_init_mmx(MPADSPContext *s)
{