Re: [FFmpeg-devel] [PATCH v2 1/3] avutil/hwcontext_qsv: register free function for device_derive

2023-06-19 Thread Xiang, Haihao
On Ma, 2023-06-19 at 14:15 +0800, Tong Wu wrote: > When qsv device is created by device_derive, the ctx->free function is > not registered, causing potential memory leak because of not properly > closing the MFX session. > > Signed-off-by: Tong Wu > Signed-off-by: Wenbin Chen > --- >  libavutil/

[FFmpeg-devel] [PATCH v2 1/3] avutil/hwcontext_qsv: register free function for device_derive

2023-06-18 Thread Tong Wu
When qsv device is created by device_derive, the ctx->free function is not registered, causing potential memory leak because of not properly closing the MFX session. Signed-off-by: Tong Wu Signed-off-by: Wenbin Chen --- libavutil/hwcontext_qsv.c | 9 + 1 file changed, 9 insertions(+) d