dxva2: remove dead code in failure case

This was made unnecessary by a02d77b, since the only way the function
could fail was by failing to add a reference to the DirectX DLLs.
This commit is contained in:
James Ross-Gowan 2016-06-07 18:49:26 +10:00
parent a9150a49d7
commit 88b584656d
1 changed files with 0 additions and 3 deletions

View File

@ -89,9 +89,6 @@ static struct mp_image *dxva2_new_ref(IDirectXVideoDecoder *decoder,
mp_image_set_size(mpi, w, h);
mpi->planes[3] = (void *)surface->surface;
return mpi;
fail:
dxva2_release_img(surface);
return NULL;
}
static struct mp_image *dxva2_allocate_image(struct lavc_ctx *s, int w, int h)