diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-08-10 09:38:21 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-11-07 12:48:00 +0100 |
commit | 4ab61cd983b539749bd621ea271624ddb5196a8e (patch) | |
tree | 6b5013b990f8a170d82819c8c012b90d29cb4c94 /libavcodec/qsvdec.c | |
parent | 00aeedd84105a17f414185bd33ecadebeddb3a27 (diff) | |
download | ffmpeg-4ab61cd983b539749bd621ea271624ddb5196a8e.tar.gz |
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/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 398c319b30..6131100518 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -416,8 +416,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; } |