diff options
author | James Almer <jamrial@gmail.com> | 2017-12-14 18:46:43 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-12-14 18:46:43 -0300 |
commit | b4718b76937a6677ce89866e06d929d778c57b64 (patch) | |
tree | 5c71e1f0eb0eba97f945e57968a36209261af019 /libavcodec | |
parent | f61cf0e4df52130c138ee55691409044ab2e9833 (diff) | |
parent | f2e9a0ecbef5027f9532c49ffcdfc11d199f6150 (diff) | |
download | ffmpeg-b4718b76937a6677ce89866e06d929d778c57b64.tar.gz |
Merge commit 'f2e9a0ecbef5027f9532c49ffcdfc11d199f6150'
* commit 'f2e9a0ecbef5027f9532c49ffcdfc11d199f6150':
qsv/vp8dec: fixes memory leak issue
Merged-by: James Almer <jamrial@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 416e4c8164..3c872dcfc2 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); |