diff options
author | wm4 <wm4@nowhere> | 2017-05-04 01:13:03 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-05-04 01:13:03 +0200 |
commit | 1143f2877a70c8aa3f0b44e746360215e470dd56 (patch) | |
tree | 02715c99c0a26dc7bdec742bcab1b65424e4e5fd /video/out/opengl/hwdec_d3d11egl.c | |
parent | 19bf3a72ff3fd36fbd2443f27e453d6e82b4dd2f (diff) | |
download | mpv-1143f2877a70c8aa3f0b44e746360215e470dd56.tar.bz2 mpv-1143f2877a70c8aa3f0b44e746360215e470dd56.tar.xz |
d3d11: change mp_image plane pointer semantics
Until now, the texture pointer was stored in plane 1, and the texture
array index was in plane 2. Move this down to plane 0 and plane 1. This
is to align it to the new WIP D3D11 decoding API in Libav, where we
decided that there is no reason to avoid setting plane 0, and that it
would be less weird to start at plane 0.
Diffstat (limited to 'video/out/opengl/hwdec_d3d11egl.c')
-rw-r--r-- | video/out/opengl/hwdec_d3d11egl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/opengl/hwdec_d3d11egl.c b/video/out/opengl/hwdec_d3d11egl.c index 1e0af02793..f2607f62f0 100644 --- a/video/out/opengl/hwdec_d3d11egl.c +++ b/video/out/opengl/hwdec_d3d11egl.c @@ -279,8 +279,8 @@ static int map_frame(struct gl_hwdec *hw, struct mp_image *hw_image, if (!p->gl_textures[0]) return -1; - ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[1]; - int d3d_subindex = (intptr_t)hw_image->planes[2]; + ID3D11Texture2D *d3d_tex = (void *)hw_image->planes[0]; + int d3d_subindex = (intptr_t)hw_image->planes[1]; if (!d3d_tex) return -1; |