1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

qsvdec: close the MFX decoder on uninit

This commit is contained in:
Anton Khirnov 2015-08-11 14:52:31 +02:00
parent d0c8c380ec
commit 2c32eace5e

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);