Commit fc561505 authored by Martin Storsjö's avatar Martin Storsjö Committed by Thomas Guillem

chroma: copy: Fix compilation for other architectures than x86

This fixes build breakage since 10de9cab.

(cherry picked from commit b1183740)
Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent deac05c7
...@@ -644,10 +644,13 @@ void CopyPacked(picture_t *dst, const uint8_t *src, const size_t src_pitch, ...@@ -644,10 +644,13 @@ void CopyPacked(picture_t *dst, const uint8_t *src, const size_t src_pitch,
assert(src); assert(src_pitch); assert(src); assert(src_pitch);
assert(height); assert(height);
#ifdef CAN_COMPILE_SSE2
if (vlc_CPU_SSE4_1()) if (vlc_CPU_SSE4_1())
SSE_CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch, return SSE_CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch,
cache->buffer, cache->size, height, 0); cache->buffer, cache->size, height, 0);
else #else
(void) cache;
#endif
CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch, CopyPlane(dst->p[0].p_pixels, dst->p[0].i_pitch, src, src_pitch,
height, 0); height, 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment