mirror of https://git.ffmpeg.org/ffmpeg.git
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,6 +537,7 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
|
|||
{
|
||||
QSVFrame *cur;
|
||||
|
||||
if (q->session)
|
||||
MFXVideoENCODE_Close(q->session);
|
||||
q->session = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue