[libav-devel] [PATCH 07/11] qsvdec: close the MFX decoder on uninit

Luca Barbato lu_zero at gentoo.org
Wed Aug 12 15:27:04 CEST 2015


On 12/08/15 15:07, Anton Khirnov wrote:
> ---
>  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);
> 

Ok.


More information about the libav-devel mailing list