From d52080c0abc5e325c5cba38901fef340d6c798aa Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Fri, 30 Aug 2019 09:00:06 +0200 Subject: [PATCH] Android: minor warning --- src/video/SDL_yuv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video/SDL_yuv.c b/src/video/SDL_yuv.c index 86b883427b0b1..ef90a8938f7e6 100644 --- a/src/video/SDL_yuv.c +++ b/src/video/SDL_yuv.c @@ -1221,6 +1221,7 @@ SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height, return SDL_SetError("SDL_ConvertPixels_Planar2x2_to_Planar2x2: Unsupported YUV conversion: %s -> %s", SDL_GetPixelFormatName(src_format), SDL_GetPixelFormatName(dst_format)); } +#ifdef __SSE2__ #define PACKED4_TO_PACKED4_ROW_SSE2(shuffle) \ while (x >= 4) { \ __m128i yuv = _mm_loadu_si128((__m128i*)srcYUV); \ @@ -1237,6 +1238,8 @@ SDL_ConvertPixels_Planar2x2_to_Planar2x2(int width, int height, x -= 4; \ } \ +#endif + static int SDL_ConvertPixels_YUY2_to_UYVY(int width, int height, const void *src, int src_pitch, void *dst, int dst_pitch) {