[FFmpeg-cvslog] lavc/qsvdec: needn't free the string for AV_OPT_TYPE_STRING AVOption

Haihao Xiang git at videolan.org
Wed Jan 5 05:10:25 EET 2022


ffmpeg | branch: master | Haihao Xiang <haihao.xiang at intel.com> | Fri Jan 29 08:54:32 2021 +0800| [8d4c0c8823194c71bb825f2ccd28b912f3791e08] | committer: Haihao Xiang

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 at intel.com>

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

 libavcodec/qsvdec.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c
index 8bce9f2cf0..08370c8a0b 100644
--- a/libavcodec/qsvdec.c
+++ b/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);



More information about the ffmpeg-cvslog mailing list