diff options
author | Zhong Li <zhong.li@intel.com> | 2019-10-08 07:55:01 +0300 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-10-09 05:44:04 +0300 |
commit | 949a1b3e2f75338e17e446e97105e06ad6b4012a (patch) | |
tree | 023ace95b30998e55b8bec495ad48dde89247c26 /libavcodec/qsv.c | |
parent | 9d92403add22b29cb908826005af7783b9340df8 (diff) |
lavc/qsv: remove vaapi device free function
It is not needed since av_buffer_unref() will call it internally
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavcodec/qsv.c')
-rw-r--r-- | libavcodec/qsv.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index a43f0d5c5a..81fa4a82ef 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -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; |