[vlc-commits] chroma: copy: Fix compilation for other architectures than x86
Martin Storsjö
git at videolan.org
Mon Mar 19 08:30:22 CET 2018
vlc | branch: master | Martin Storsjö <martin at martin.st> | Mon Mar 19 09:29:56 2018 +0200| [b118374094a16a7fbfdca8e11ed7aefa86b2bc38] | committer: Martin Storsjö
chroma: copy: Fix compilation for other architectures than x86
This fixes build breakage since 10de9cab52679326c1c05244bdc04b529e392c43.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b118374094a16a7fbfdca8e11ed7aefa86b2bc38
---
modules/video_chroma/copy.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/modules/video_chroma/copy.c b/modules/video_chroma/copy.c
index f5b0b68617..2f52163485 100644
--- a/modules/video_chroma/copy.c
+++ b/modules/video_chroma/copy.c
@@ -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);
}
More information about the vlc-commits
mailing list