lavc/qsvdec: needn't free the string for AV_OPT_TYPE_STRING AVOption

The string for AV_OPT_TYPE_STRING AVOption gets freed by av_opt_free()
when closing the AVCodecContext

Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
pull/385/head
Haihao Xiang 4 years ago
parent 0d82613b7d
commit 8d4c0c8823
  1. 2
      libavcodec/qsvdec.c

@ -754,8 +754,6 @@ static av_cold int qsv_decode_close(AVCodecContext *avctx)
{
QSVDecContext *s = avctx->priv_data;
av_freep(&s->qsv.load_plugins);
qsv_decode_close_qsvcontext(&s->qsv);
qsv_clear_buffers(s);

Loading…
Cancel
Save