summaryrefslogtreecommitdiff
path: root/libavcodec/qsvenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-08-10 09:38:21 +0200
committerAnton Khirnov <anton@khirnov.net>2016-11-07 12:48:00 +0100
commit4ab61cd983b539749bd621ea271624ddb5196a8e (patch)
tree6b5013b990f8a170d82819c8c012b90d29cb4c94 /libavcodec/qsvenc.c
parent00aeedd84105a17f414185bd33ecadebeddb3a27 (diff)
qsv{enc,dec}: extend the internal frame allocator
Handle the internal frame requests, which is required by the HEVC encoding plugin. Signed-off-by: Maxym Dmytrychenko <maxym.dmytrychenko@intel.com>
Diffstat (limited to 'libavcodec/qsvenc.c')
-rw-r--r--libavcodec/qsvenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index be8cbee884..d680fc8cbc 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -1093,8 +1093,7 @@ int ff_qsv_enc_close(AVCodecContext *avctx, QSVEncContext *q)
q->internal_session = NULL;
av_buffer_unref(&q->frames_ctx.hw_frames_ctx);
- av_freep(&q->frames_ctx.mids);
- q->frames_ctx.nb_mids = 0;
+ av_buffer_unref(&q->frames_ctx.mids_buf);
cur = q->work_frames;
while (cur) {