diff options
author | Li, Zhong <zhong.li@intel.com> | 2017-12-07 15:26:38 +0800 |
---|---|---|
committer | Maxym Dmytrychenko <maxim.d33@gmail.com> | 2017-12-12 13:59:13 +0100 |
commit | f2e9a0ecbef5027f9532c49ffcdfc11d199f6150 (patch) | |
tree | f21affb7b4a21df677fad1f37eb9faf049ba090c /libavcodec | |
parent | 7c65a76b16bc3a44f1592acde2176f187a058797 (diff) | |
download | ffmpeg-f2e9a0ecbef5027f9532c49ffcdfc11d199f6150.tar.gz |
qsv/vp8dec: fixes memory leak issue
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/qsvdec_other.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/qsvdec_other.c b/libavcodec/qsvdec_other.c index 3ea1859bf8..97a763579a 100644 --- a/libavcodec/qsvdec_other.c +++ b/libavcodec/qsvdec_other.c @@ -60,6 +60,11 @@ static av_cold int qsv_decode_close(AVCodecContext *avctx) { QSVOtherContext *s = avctx->priv_data; +#if CONFIG_VP8_QSV_DECODER + if (avctx->codec_id == AV_CODEC_ID_VP8) + av_freep(&s->qsv.load_plugins); +#endif + ff_qsv_decode_close(&s->qsv); qsv_clear_buffers(s); |