Merge commit '83847cc8fa97e0fc637a0962bafb837acdb6eacc'

* commit '83847cc8fa97e0fc637a0962bafb837acdb6eacc':
  qsvenc: do not try to close the encoder if the session is NULL

Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
pull/118/merge
Hendrik Leppkes 9 years ago
commit 49a25d02dd
  1. 3
      libavcodec/qsvenc.c

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

Loading…
Cancel
Save