diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-08-11 14:52:31 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-09-28 15:45:17 +0200 |
commit | 2c32eace5ec4d1d7ca4e0220856cd2815ccc71b2 (patch) | |
tree | 70951132f2de574f8d3621edbbf9f3ec87e3255b /libavcodec | |
parent | d0c8c380ecf3d9bb16621a4fb59ebbcde301002a (diff) | |
download | ffmpeg-2c32eace5ec4d1d7ca4e0220856cd2815ccc71b2.tar.gz |
qsvdec: close the MFX decoder on uninit
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 44693d23e1..2b81688964 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); |