diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-25 20:30:19 -0700 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2012-07-31 20:28:52 -0700 |
commit | 53dfaedc014ba6bd073fece6582da1805b3c44c2 (patch) | |
tree | 9ab99d4723e21d3719e64122274bc3b6666e253a /libavcodec/x86/mpegvideo_mmx.c | |
parent | 9e4bca16f89bc12c58b58f4611d580a30d5f9638 (diff) | |
download | ffmpeg-53dfaedc014ba6bd073fece6582da1805b3c44c2.tar.gz |
x86/dsputilenc: bury inline asm under HAVE_INLINE_ASM.
Diffstat (limited to 'libavcodec/x86/mpegvideo_mmx.c')
-rw-r--r-- | libavcodec/x86/mpegvideo_mmx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/mpegvideo_mmx.c b/libavcodec/x86/mpegvideo_mmx.c index dcce48638b..a242c19aec 100644 --- a/libavcodec/x86/mpegvideo_mmx.c +++ b/libavcodec/x86/mpegvideo_mmx.c @@ -29,6 +29,8 @@ #include "libavcodec/mpegvideo.h" #include "dsputil_mmx.h" +#if HAVE_INLINE_ASM + extern uint16_t ff_inv_zigzag_direct16[64]; @@ -626,8 +628,11 @@ static void denoise_dct_sse2(MpegEncContext *s, DCTELEM *block){ #include "mpegvideo_mmx_template.c" #endif +#endif /* HAVE_INLINE_ASM */ + void ff_MPV_common_init_mmx(MpegEncContext *s) { +#if HAVE_INLINE_ASM int mm_flags = av_get_cpu_flags(); if (mm_flags & AV_CPU_FLAG_MMX) { @@ -662,4 +667,5 @@ void ff_MPV_common_init_mmx(MpegEncContext *s) } } } +#endif /* HAVE_INLINE_ASM */ } |