Commit 49a25d02 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '83847cc8'

* commit '83847cc8':
  qsvenc: do not try to close the encoder if the session is NULL
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 4554178f 83847cc8
......@@ -537,7 +537,8 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
{
QSVFrame *cur;
MFXVideoENCODE_Close(q->session);
if (q->session)
MFXVideoENCODE_Close(q->session);
q->session = NULL;
ff_qsv_close_internal_session(&q->internal_qs);
......
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