mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
qsvenc: do not try to close the encoder if the session is NULL
This commit is contained in:
parent
741b352b16
commit
83847cc8fa
@ -482,6 +482,7 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
|
||||
{
|
||||
QSVFrame *cur;
|
||||
|
||||
if (q->session)
|
||||
MFXVideoENCODE_Close(q->session);
|
||||
if (q->internal_session)
|
||||
MFXClose(q->internal_session);
|
||||
|
Loading…
Reference in New Issue
Block a user