projects
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
741b352
)
qsvenc: do not try to close the encoder if the session is NULL
author
Anton Khirnov
<anton@khirnov.net>
Wed, 5 Aug 2015 11:40:03 +0000
(13:40 +0200)
committer
Anton Khirnov
<anton@khirnov.net>
Mon, 28 Sep 2015 13:42:56 +0000
(15:42 +0200)
libavcodec/qsvenc.c
patch
|
blob
|
blame
|
history
diff --git
a/libavcodec/qsvenc.c
b/libavcodec/qsvenc.c
index
752777b
..
d6a731f
100644
(file)
--- a/
libavcodec/qsvenc.c
+++ b/
libavcodec/qsvenc.c
@@
-482,7
+482,8
@@
int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
{
QSVFrame *cur;
{
QSVFrame *cur;
- MFXVideoENCODE_Close(q->session);
+ if (q->session)
+ MFXVideoENCODE_Close(q->session);
if (q->internal_session)
MFXClose(q->internal_session);
q->session = NULL;
if (q->internal_session)
MFXClose(q->internal_session);
q->session = NULL;