diff options
author | James Almer <jamrial@gmail.com> | 2018-09-18 13:28:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-09-18 13:28:05 -0300 |
commit | f4cf6ba8c9646814af842a99335c6ee312ded299 (patch) | |
tree | 540abb57a2984b9f0596cc4d75b39c8e96258dd6 /libavcodec/qsvenc.c | |
parent | bd10c1e9a86c9e5f1593f7b178ea060ea965f81c (diff) | |
parent | a2041a6522642859ce64af1c618d6fb90a50d4af (diff) | |
download | ffmpeg-f4cf6ba8c9646814af842a99335c6ee312ded299.tar.gz |
Merge commit 'a2041a6522642859ce64af1c618d6fb90a50d4af'
* commit 'a2041a6522642859ce64af1c618d6fb90a50d4af':
qsvenc: AV_PIX_FMT_QSV path should release frame
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/qsvenc.c')
-rw-r--r-- | libavcodec/qsvenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 029e8f301a..948751daf4 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1026,6 +1026,9 @@ static void clear_unused_frames(QSVEncContext *q) while (cur) { if (cur->used && !cur->surface.Data.Locked) { free_encoder_ctrl_payloads(&cur->enc_ctrl); + if (cur->frame->format == AV_PIX_FMT_QSV) { + av_frame_unref(cur->frame); + } cur->used = 0; } cur = cur->next; |