diff options
author | Avi Halachmi (:avih) <avihpit@yahoo.com> | 2015-04-24 04:04:45 +0300 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-24 17:40:39 +0200 |
commit | e2326bda82933ff0fa8bd16a06fd49da11bdae22 (patch) | |
tree | 833f84ad1f331b67069bda14186f5b59babf2206 | |
parent | 9c6417ea88a71691f41a519713975219ca2596b3 (diff) | |
download | mpv-e2326bda82933ff0fa8bd16a06fd49da11bdae22.tar.bz2 mpv-e2326bda82933ff0fa8bd16a06fd49da11bdae22.tar.xz |
dxva2: fix broken build with gcc 5.1
gpu_mempcy should to be called from code which targets SSE
Signed-off-by: wm4 <wm4@nowhere>
-rw-r--r-- | video/decode/dxva2.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |