diff options
author | Mark Thompson | 2017-03-30 22:07:57 +0100 |
---|---|---|
committer | Mark Thompson | 2017-03-30 22:07:57 +0100 |
commit | ff821fdfced0de05e1e62c7fec2635ffc607f383 (patch) | |
tree | b3ee5ac8938408d5511234fe658e74e48c187822 /libavcodec/qsvenc.c | |
parent | c0f2a8eac172ce720a513abe1706a026236c0579 (diff) | |
parent | 4ab61cd983b539749bd621ea271624ddb5196a8e (diff) |
Merge commit '4ab61cd983b539749bd621ea271624ddb5196a8e'
* commit '4ab61cd983b539749bd621ea271624ddb5196a8e':
qsv{enc,dec}: extend the internal frame allocator
Merged-by: Mark Thompson <sw@jkqxz.net>
Diffstat (limited to 'libavcodec/qsvenc.c')
-rw-r--r-- | libavcodec/qsvenc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 76f18cdc7b..9c385a79d8 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1110,8 +1110,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) { |