diff options
author | Zhong Li <zhong.li@intel.com> | 2019-10-08 12:55:01 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-10-09 10:44:04 +0800 |
commit | 949a1b3e2f75338e17e446e97105e06ad6b4012a (patch) | |
tree | 023ace95b30998e55b8bec495ad48dde89247c26 | |
parent | 9d92403add22b29cb908826005af7783b9340df8 (diff) | |
download | ffmpeg-949a1b3e2f75338e17e446e97105e06ad6b4012a.tar.gz |
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>
-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; |