[FFmpeg-cvslog] qsv/vp8dec: fixes memory leak issue

Li, Zhong git at videolan.org
Fri Dec 15 00:09:23 EET 2017


ffmpeg | branch: master | Li, Zhong <zhong.li at intel.com> | Thu Dec  7 15:26:38 2017 +0800| [f2e9a0ecbef5027f9532c49ffcdfc11d199f6150] | committer: Maxym Dmytrychenko

qsv/vp8dec: fixes memory leak issue

Signed-off-by: Zhong Li <zhong.li at intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f2e9a0ecbef5027f9532c49ffcdfc11d199f6150
---

 libavcodec/qsvdec_other.c | 5 +++++
 1 file changed, 5 insertions(+)

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);



More information about the ffmpeg-cvslog mailing list