1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-04 22:20:22 +00:00
mpv/video/decode
Kevin Mitchell fb5f732798 vd_lavc: fix use after free in some hwdecs
fd339e3f53 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>
2016-02-06 14:24:25 +01:00
..
dec_video.c video: remove AVI timestamps for dropped frames 2016-02-04 21:31:15 +01:00
dec_video.h audio/video: merge decoder return values 2016-02-01 22:03:04 +01:00
dxva2.c vd_lavc: delay images before reading them back 2016-01-25 21:46:40 +01:00
lavc.h vd_lavc: remove redundant best_csp field 2016-02-03 21:31:53 +01:00
rpi.c rpi: add VC-1 support 2016-01-28 11:23:23 +01:00
vaapi.c vaapi: lower number of allocated surfaces again 2016-01-26 14:05:54 +01:00
vd_lavc.c vd_lavc: fix use after free in some hwdecs 2016-02-06 14:24:25 +01:00
vd.h vd_lavc: allow switching between hw/sw decoding any time 2016-01-29 22:47:27 +01:00
vdpau.c
videotoolbox.c