1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00
mpv/video
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
..
decode vd_lavc: fix use after free in some hwdecs 2016-02-06 14:24:25 +01:00
filter build: make libavfilter mandatory 2016-02-05 23:17:33 +01:00
out vo_rpi: add geometry handling 2016-02-05 17:49:43 +01:00
csputils.c Change GPL/LGPL dual-licensed files to LGPL 2016-01-19 18:36:34 +01:00
csputils.h Change GPL/LGPL dual-licensed files to LGPL 2016-01-19 18:36:34 +01:00
d3d.h vo_direct3d, dxva2: use the same D3D device 2015-07-03 16:04:42 +02:00
fmt-conversion.c video: remove some useless old RGB formats 2016-01-25 10:43:35 +01:00
fmt-conversion.h Update license headers 2015-04-13 12:10:01 +02:00
gpu_memcpy.c video: refactor GPU memcpy usage 2015-09-25 19:18:16 +02:00
gpu_memcpy.h video: refactor GPU memcpy usage 2015-09-25 19:18:16 +02:00
hwdec.h video: remove VDA support 2015-09-28 22:03:14 +02:00
image_writer.c image_writer: fix writing flipped images as jpg 2016-01-17 22:26:38 +01:00
image_writer.h screenshots: add option to prevent 16 bit output 2015-04-29 21:05:04 +02:00
img_format.c img_format: fix padding calculation with P010 2016-01-08 12:48:03 +01:00
img_format.h video: remove some useless old RGB formats 2016-01-25 10:43:35 +01:00
img_fourcc.h build: deal with endian mess 2014-07-10 00:58:56 +02:00
mp_image_pool.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
mp_image_pool.h video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
mp_image.c mp_image: copy dts as part of mp_image attributes too 2016-01-28 11:23:16 +01:00
mp_image.h video: cleanup pts/dts passing between decoder components 2016-01-25 21:46:39 +01:00
sws_utils.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
sws_utils.h vf_scale: libswscale is being stupid 2015-03-01 22:32:38 +01:00
vaapi.c vaapi: replace VA_STR_FOURCC 2016-01-11 20:30:36 +01:00
vaapi.h vaapi: replace VA_STR_FOURCC 2016-01-11 20:30:36 +01:00
vdpau_functions.inc vo_vdpau: directly get surface size from surface for screenshots 2015-06-05 22:34:16 +02:00
vdpau_mixer.c csputils: rename "yuv2rgb" functions 2015-12-09 00:23:36 +01:00
vdpau_mixer.h vdpau: retrieve mixer parameters directly from the hw surface 2015-05-28 21:54:02 +02:00
vdpau.c vdpau: force driver to report preemption early 2016-01-25 16:45:18 +01:00
vdpau.h vdpau: force driver to report preemption early 2016-01-25 16:45:18 +01:00