Commit 949a1b3e authored by Zhong Li's avatar Zhong Li

lavc/qsv: remove vaapi device free function

It is not needed since av_buffer_unref() will call it internally
Signed-off-by: 's avatarZhong Li <zhong.li@intel.com>
parent 9d92403a
......@@ -835,10 +835,6 @@ int ff_qsv_close_internal_session(QSVSession *qs)
qs->session = NULL;
}
#ifdef AVCODEC_QSV_LINUX_SESSION_HANDLE
if (qs->va_device_ctx) {
qs->va_device_ctx->free(qs->va_device_ctx);
}
av_buffer_unref(&qs->va_device_ref);
#endif
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment