Browse Source

qsv/vp8dec: fixes memory leak issue

Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
tags/n4.0
Li, Zhong Maxym Dmytrychenko 7 years ago
parent
commit
f2e9a0ecbe
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/qsvdec_other.c

+ 5
- 0
libavcodec/qsvdec_other.c View File

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


Loading…
Cancel
Save