hwcontext_d3d11va: fix crash on frames_init failure
authorwm4 <nfxjfg@googlemail.com>
Thu, 22 Jun 2017 12:52:54 +0000 (14:52 +0200)
committerwm4 <nfxjfg@googlemail.com>
Tue, 27 Jun 2017 16:05:02 +0000 (18:05 +0200)
commit1509d739a036b9838e12f28dac9f09ac37bc3928
tree925eedd409623c21d7fb61515f0fb15aa3b7c714
parent39f201a0ec7913f7509a01fb0fa6634a24e52203
hwcontext_d3d11va: fix crash on frames_init failure

It appears in this case, frames_ininit is called twice (once by
av_hwframe_ctx_init(), and again by unreffing the frames ctx ref).

Merges Libav commit 086321c612185469ebb85a1887527c8915b488b7.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavutil/hwcontext_d3d11va.c