]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/qsvdec_other.c
avcodec/mpc8: check for overread first
[ffmpeg] / libavcodec / qsvdec_other.c
index 416e4c81647bb299b32ce8f6f48be7127a8f3360..3c872dcfc2a9c3e902fbbf4d2f144515faafe380 100644 (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);