From a03461a652590c2e341bcd034eb539640599f09e Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Sun, 18 May 2014 23:25:45 +0300 Subject: Only compile MMX/SSE code on x86/x86_64. The greedy2frame code uses MMX or SSE instructions. Only compile this code on architectures where they exist. --- src/post/deinterlace/plugins/greedy2frame.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/post/deinterlace/plugins/greedy2frame.c b/src/post/deinterlace/plugins/greedy2frame.c index 964c490a9..f2cd2a6ea 100644 --- a/src/post/deinterlace/plugins/greedy2frame.c +++ b/src/post/deinterlace/plugins/greedy2frame.c @@ -59,6 +59,8 @@ static void DeinterlaceGreedy2Frame(uint8_t *output, int outstride, int bottom_field, int second_field, int width, int height ) { +#if defined(ARCH_X86) || defined(ARCH_X86_64) + if (xine_mm_accel() & MM_ACCEL_X86_SSE2) { if (((uintptr_t)output & 15) || (outstride & 15) || width & 7 || @@ -82,6 +84,7 @@ static void DeinterlaceGreedy2Frame(uint8_t *output, int outstride, bottom_field, second_field, width, height ); /* could fall back to 3dnow/mmx here too */ } +#endif /*ARCH_X86 */ } -- cgit v1.2.3