1
mirror of https://github.com/mpv-player/mpv synced 2024-10-30 04:46:41 +01:00
mpv/video/decode
wm4 de6d3f8ca1 vd_lavc: fix device leak with copy-mode hwaccels
Apparently this was broken by the "ctx->hwdec" check in the if condition
guarding the destroy call, and "ctx->hwdec = NULL;" was moved up
earlier, making this always dead code.

This should probably be refcounted or so, although that could make it
worse as well. For now, add a flag whether the device should be
destroyed.

Fixes #4735.
2017-08-09 12:00:56 +02:00
..
d3d.c d3d: UWP support for D3D11VA 2017-06-30 18:57:37 +02:00
d3d.h d3d: UWP support for D3D11VA 2017-06-30 18:57:37 +02:00
dec_video.c options: --priority can be LGPL 2017-08-03 09:44:36 +02:00
dec_video.h vo_opengl: add direct rendering support 2017-07-24 04:32:55 +02:00
hw_cuda.c cuda: add new way to set cuda context on cuvid codecs 2017-05-05 00:48:53 +02:00
hw_d3d11va.c d3d: fix behavior with deprecated FFmpeg J pixel formats 2017-07-04 14:06:31 +02:00
hw_dxva2.c d3d: fix behavior with deprecated FFmpeg J pixel formats 2017-07-04 14:06:31 +02:00
hw_videotoolbox.c videotoolbox: support new libavcodec API 2017-05-24 15:25:48 +02:00
lavc.h vd_lavc: fix device leak with copy-mode hwaccels 2017-08-09 12:00:56 +02:00
vd_lavc.c vd_lavc: fix device leak with copy-mode hwaccels 2017-08-09 12:00:56 +02:00
vd.h vd, vd_lavc: change license to LGPL (almost) 2017-06-15 16:32:47 +02:00