diff options
author | Nedeljko Babic <nbabic@mips.com> | 2012-11-09 12:45:40 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-10 19:55:54 +0100 |
commit | 304a1ed1e86429eb4e20a48d887546b1072ed4da (patch) | |
tree | 26396f285e31a7cd508ec3404c4651e501518ee6 /libavcodec/mips/fmtconvert_mips.c | |
parent | 2d71f31df23910f18b17f17fa568b13fd5dcaf1a (diff) | |
download | ffmpeg-304a1ed1e86429eb4e20a48d887546b1072ed4da.tar.gz |
mips: Add dependencies on HAVE_INLINE_ASM
Add dependencies on HAVE_INLINE_ASM for files and parts of code
where it is necessary.
Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mips/fmtconvert_mips.c')
-rw-r--r-- | libavcodec/mips/fmtconvert_mips.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mips/fmtconvert_mips.c b/libavcodec/mips/fmtconvert_mips.c index f89d3b6d64..8a0265f070 100644 --- a/libavcodec/mips/fmtconvert_mips.c +++ b/libavcodec/mips/fmtconvert_mips.c @@ -51,6 +51,7 @@ #include "libavcodec/avcodec.h" #include "libavcodec/fmtconvert.h" +#if HAVE_INLINE_ASM #if HAVE_MIPSDSPR1 static void float_to_int16_mips(int16_t *dst, const float *src, long len) { @@ -327,12 +328,15 @@ static void int32_to_float_fmul_scalar_mips(float *dst, const int *src, : "memory" ); } +#endif /* HAVE_INLINE_ASM */ av_cold void ff_fmt_convert_init_mips(FmtConvertContext *c) { +#if HAVE_INLINE_ASM #if HAVE_MIPSDSPR1 c->float_to_int16_interleave = float_to_int16_interleave_mips; c->float_to_int16 = float_to_int16_mips; #endif c->int32_to_float_fmul_scalar = int32_to_float_fmul_scalar_mips; +#endif } |