[FFmpeg-cvslog] qsvdec: close the MFX decoder on uninit
Anton Khirnov
git at videolan.org
Tue Sep 29 14:17:20 CEST 2015
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Aug 11 14:52:31 2015 +0200| [2c32eace5ec4d1d7ca4e0220856cd2815ccc71b2] | committer: Anton Khirnov
qsvdec: close the MFX decoder on uninit
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c32eace5ec4d1d7ca4e0220856cd2815ccc71b2
---
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);
More information about the ffmpeg-cvslog
mailing list