[FFmpeg-cvslog] x86: Fix linking with some or all of yasm, mmx, optimizations disabled
Diego Biurrun
git at videolan.org
Sat Aug 9 19:34:04 CEST 2014
ffmpeg | branch: release/0.10 | Diego Biurrun <diego at biurrun.de> | Wed Aug 29 11:14:17 2012 +0200| [976f2e0a542e47aaf68ddbe001fb70a00bf96d99] | committer: Diego Biurrun
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 at biurrun.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=976f2e0a542e47aaf68ddbe001fb70a00bf96d99
---
libavcodec/x86/mpegaudiodec_mmx.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavcodec/x86/mpegaudiodec_mmx.c b/libavcodec/x86/mpegaudiodec_mmx.c
index 06ffbca..7703a74 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)
{
More information about the ffmpeg-cvslog
mailing list