diff options
author | Kevin Mitchell <kevmitch@gmail.com> | 2016-02-06 01:09:13 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-06 14:24:25 +0100 |
commit | fb5f73279817023249476a02ca5afc36c6e52fda (patch) | |
tree | 74b4c33b1244e8966d1454dabd57a7b2a4e15cf4 /player | |
parent | bb6ae0e50bc2e39f1735794372365bebf44901df (diff) | |
download | mpv-fb5f73279817023249476a02ca5afc36c6e52fda.tar.bz2 mpv-fb5f73279817023249476a02ca5afc36c6e52fda.tar.xz |
vd_lavc: fix use after free in some hwdecs
fd339e3f53996efd2dae9525990da433d1e1bf89 introduced a regression that caused
segfault while uniniting dxva2 decoder (and possibly vdpau too). The problem was
that it freed the avctx earlier, before calling the backend-specific uninit
which referenced it.
Revert some of the changes of that commit, and avoid calling flush by
checking whether the codec is open instead.
(Based on a PR by Kevin Mitchell.)
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'player')
0 files changed, 0 insertions, 0 deletions