ffmpeg | branch: master | Zhong Li <zhong...@intel.com> | Tue Oct  8 12:55:01 
2019 +0800| [949a1b3e2f75338e17e446e97105e06ad6b4012a] | committer: Zhong Li

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...@intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=949a1b3e2f75338e17e446e97105e06ad6b4012a
---

 libavcodec/qsv.c | 4 ----
 1 file changed, 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to