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>
This commit is contained in:
commit
49a25d02dd
@ -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…
x
Reference in New Issue
Block a user