qsvdec: close the MFX decoder on uninit

This commit is contained in:
Anton Khirnov
2015-09-28 15:45:17 +02:00
parent d0c8c380ec
commit 2c32eace5e
+3
View File
@@ -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);