summaryrefslogtreecommitdiffstats
path: root/video/decode/dxva2.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/decode/dxva2.c')
-rw-r--r--video/decode/dxva2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/video/decode/dxva2.c b/video/decode/dxva2.c
index 489f580fc0..fc52aca03b 100644
--- a/video/decode/dxva2.c
+++ b/video/decode/dxva2.c
@@ -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)