d3d11va: remove unused d3d11va_surface.subindex field

This is now stored within the AVFrame/mp_image.
This commit is contained in:
wm4 2016-06-16 18:13:46 +02:00
parent a6074a3375
commit 7ecac3ae6f
1 changed files with 1 additions and 3 deletions

View File

@ -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;