diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-03-31 00:07:57 +0300 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-03-31 00:07:57 +0300 |
commit | ff821fdfced0de05e1e62c7fec2635ffc607f383 (patch) | |
tree | b3ee5ac8938408d5511234fe658e74e48c187822 /libavcodec/qsvdec.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/qsvdec.c')
-rw-r--r-- | libavcodec/qsvdec.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 113bac16cd..5f6ea5ae6c 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -433,8 +433,7 @@ int ff_qsv_decode_close(QSVContext *q) MFXClose(q->internal_session); 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); return 0; } |