From e2326bda82933ff0fa8bd16a06fd49da11bdae22 Mon Sep 17 00:00:00 2001 From: "Avi Halachmi (:avih)" Date: Fri, 24 Apr 2015 04:04:45 +0300 Subject: [PATCH] dxva2: fix broken build with gcc 5.1 gpu_mempcy should to be called from code which targets SSE Signed-off-by: wm4 --- video/decode/dxva2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c index cbd08a7e52..ef7756178d 100644 --- a/video/decode/dxva2.c +++ b/video/decode/dxva2.c @@ -256,6 +256,9 @@ static void copy_nv12_fallback(struct mp_image *dest, uint8_t *src_bits, mp_image_copy(dest, &buf); } +#pragma GCC push_options +#pragma GCC target("sse4.1") + static void copy_nv12_gpu_sse4(struct mp_image *dest, uint8_t *src_bits, unsigned src_pitch, unsigned surf_height) { @@ -291,6 +294,8 @@ static void copy_nv12_gpu_sse4(struct mp_image *dest, uint8_t *src_bits, } } +#pragma GCC pop_options + static struct mp_image *dxva2_retrieve_image(struct lavc_ctx *s, struct mp_image *img) {