]> git.sesse.net Git - ffmpeg/commit
hwcontext_d3d11va: properly reset values after release/close
authorJan Ekström <jeebjp@gmail.com>
Fri, 24 Nov 2017 00:44:44 +0000 (02:44 +0200)
committerJan Ekström <jeebjp@gmail.com>
Sat, 25 Nov 2017 16:51:41 +0000 (18:51 +0200)
commitf6d49a0dc84aade2adf150c25afb66cbda1d5528
treeaf4d5ce95f9fe02337512ce15bf9cfea0d545815
parentfbdd78fa3e9949eb8b0cf6edc2548ed50e11bf71
hwcontext_d3d11va: properly reset values after release/close

Makes the uninit function re-entrable, which can be a common case
when an API user first tries to initialize its context, fails, and
then finally unrefs the AVHWDevice.

Fixes a crash reported by sm2345 on IRC.
libavutil/hwcontext_d3d11va.c