From 7ecac3ae6f71c42e6422c98e81512a0f4e989f52 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 16 Jun 2016 18:13:46 +0200 Subject: d3d11va: remove unused d3d11va_surface.subindex field This is now stored within the AVFrame/mp_image. --- video/decode/d3d11va.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'video/decode') diff --git a/video/decode/d3d11va.c b/video/decode/d3d11va.c index 8ce026bc96..d929e1e70f 100644 --- a/video/decode/d3d11va.c +++ b/video/decode/d3d11va.c @@ -51,7 +51,6 @@ struct priv { struct d3d11va_surface { ID3D11Texture2D *texture; - int subindex; ID3D11VideoDecoderOutputView *surface; }; @@ -81,7 +80,6 @@ static struct mp_image *d3d11va_new_ref(ID3D11VideoDecoderOutputView *view, D3D11_VIDEO_DECODER_OUTPUT_VIEW_DESC surface_desc; ID3D11VideoDecoderOutputView_GetDesc(surface->surface, &surface_desc); - surface->subindex = surface_desc.Texture2D.ArraySlice; struct mp_image *mpi = mp_image_new_custom_ref(NULL, surface, d3d11va_release_img); @@ -92,7 +90,7 @@ static struct mp_image *d3d11va_new_ref(ID3D11VideoDecoderOutputView *view, mp_image_set_size(mpi, w, h); mpi->planes[0] = NULL; mpi->planes[1] = (void *)surface->texture; - mpi->planes[2] = (void *)(intptr_t)surface->subindex; + mpi->planes[2] = (void *)(intptr_t)surface_desc.Texture2D.ArraySlice; mpi->planes[3] = (void *)surface->surface; return mpi; -- cgit v1.2.3