[FFmpeg-devel] [PATCH] lavc/vaapi_encode: fix segfault
Anton Khirnov
anton at khirnov.net
Mon Jan 30 09:55:52 EET 2023
Quoting Xiang, Haihao (2023-01-30 06:23:21)
> From: Haihao Xiang <haihao.xiang at intel.com>
>
> This is a regression since commit fbdba9a1a69fe4df413d9e9df1b11db522946e75
>
> input_image is freed in vaapi_encode_wait() however it is still used in
> commit fbdba9a1a69fe4df413d9e9df1b11db522946e75
>
> $ ffmpeg -vaapi_device /dev/dri/renderD128 -f lavfi -i testsrc -vf
> "format=nv12,hwupload" -c:v h264_vaapi -f null -
>
> Note input_image will be freed in vaapi_encode_free() now.
>
> Cc: Anton Khirnov <anton at khirnov.net>
> Signed-off-by: Haihao Xiang <haihao.xiang at intel.com>
> ---
> libavcodec/vaapi_encode.c | 3 ---
> 1 file changed, 3 deletions(-)
Thank you, looks good.
Could swear I tested this, but apparently not :/
--
Anton Khirnov
More information about the ffmpeg-devel
mailing list