It is not needed since av_buffer_unref() will call it internally

Signed-off-by: Zhong Li <zhong...@intel.com>
---
 libavcodec/qsv.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index a43f0d5..81fa4a8 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;
-- 
2.7.4

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

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

Reply via email to