Commit 2c32eace authored by Anton Khirnov's avatar Anton Khirnov

qsvdec: close the MFX decoder on uninit

parent d0c8c380
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment