aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/decode
diff options
context:
space:
mode:
authorGravatar Kevin Mitchell <kevmitch@gmail.com>2016-04-29 23:36:01 -0700
committerGravatar Kevin Mitchell <kevmitch@gmail.com>2016-04-29 23:36:01 -0700
commit8d51f080104f33e6ba4b0749e0722e68c108ce23 (patch)
tree46b71bb1a516f85e4b4c43e487e86761c4799784 /video/decode
parent64f9e48bf1d67ed22f2488f7135a082a8ffbe716 (diff)
d3d11va: fix invalid deref on decoder init failure
fixes #3092
Diffstat (limited to 'video/decode')
-rw-r--r--video/decode/d3d11va.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/d3d11va.c b/video/decode/d3d11va.c
index 85f48c5352..a20d0e46ec 100644
--- a/video/decode/d3d11va.c
+++ b/video/decode/d3d11va.c
@@ -232,6 +232,7 @@ static int d3d11va_init_decoder(struct lavc_ctx *s, int w, int h)
struct priv *p = s->hwdec_priv;
TA_FREEP(&p->decoder);
+ ID3D11Texture2D *texture = NULL;
void *tmp = talloc_new(NULL);
UINT n_guids = ID3D11VideoDevice_GetVideoDecoderProfileCount(p->video_dev);
@@ -264,7 +265,6 @@ static int d3d11va_init_decoder(struct lavc_ctx *s, int w, int h)
int w_align = w, h_align = h;
d3d_surface_align(s, &w_align, &h_align);
- ID3D11Texture2D *texture = NULL;
D3D11_TEXTURE2D_DESC tex_desc = {
.Width = w_align,
.Height = h_align,