From: Haihao Xiang <[email protected]> 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 <[email protected]> Signed-off-by: Haihao Xiang <[email protected]> --- libavcodec/vaapi_encode.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libavcodec/vaapi_encode.c b/libavcodec/vaapi_encode.c index 6787b90e8d..b644814b6c 100644 --- a/libavcodec/vaapi_encode.c +++ b/libavcodec/vaapi_encode.c @@ -173,9 +173,6 @@ static int vaapi_encode_wait(AVCodecContext *avctx, } } - // Input is definitely finished with now. - av_frame_free(&pic->input_image); - pic->encode_complete = 1; return 0; } -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
