From 2c32eace5ec4d1d7ca4e0220856cd2815ccc71b2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Tue, 11 Aug 2015 14:52:31 +0200 Subject: qsvdec: close the MFX decoder on uninit --- libavcodec/qsvdec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 44693d2..2b81688 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -309,6 +309,9 @@ int ff_qsv_decode_close(QSVContext *q) { QSVFrame *cur = q->work_frames; + if (q->session) + MFXVideoDECODE_Close(q->session); + while (cur) { q->work_frames = cur->next; av_frame_free(&cur->frame); -- cgit v1.1