diff options
Diffstat (limited to 'video/decode/d3d.c')
-rw-r--r-- | video/decode/d3d.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/d3d.c b/video/decode/d3d.c index d2c2c9745b..abe8034b60 100644 --- a/video/decode/d3d.c +++ b/video/decode/d3d.c @@ -301,8 +301,8 @@ struct mp_image *d3d11_download_image(struct mp_hwdec_ctx *ctx, if (mpi->imgfmt != IMGFMT_D3D11VA && mpi->imgfmt != IMGFMT_D3D11NV12) return NULL; - ID3D11Texture2D *texture = (void *)mpi->planes[1]; - int subindex = (intptr_t)mpi->planes[2]; + ID3D11Texture2D *texture = (void *)mpi->planes[0]; + int subindex = (intptr_t)mpi->planes[1]; if (!texture) return NULL; |