chroma: copy: Fix compilation for other architectures than x86
authorMartin Storsjö <martin@martin.st>
Mon, 19 Mar 2018 07:29:56 +0000 (09:29 +0200)
committerMartin Storsjö <martin@martin.st>
Mon, 19 Mar 2018 07:29:56 +0000 (09:29 +0200)
This fixes build breakage since 10de9cab52679326c1c05244bdc04b529e392c43.

modules/video_chroma/copy.c

index f5b0b68..2f52163 100644 (file)
@@ -644,10 +644,13 @@ void CopyPacked(picture_t *dst, const uint8_t *src, const size_t src_pitch,
     assert(src); assert(src_pitch);
     assert(height);
 
+#ifdef CAN_COMPILE_SSE2
     if (vlc_CPU_SSE4_1())
-        SSE_CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch,
-                      cache->buffer, cache->size, height, 0);
-    else
+        return SSE_CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch,
+                             cache->buffer, cache->size, height, 0);
+#else
+    (void) cache;
+#endif
         CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch,
                   height, 0);
 }