[FFmpeg-cvslog] avfilter/vf_nnedi: fix possible double free
Paul B Mahol
git at videolan.org
Mon Oct 7 12:16:10 EEST 2019
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Oct 7 11:10:45 2019 +0200| [5b4010e88686ea40a56f016f3c27753af6b3c766] | committer: Paul B Mahol
avfilter/vf_nnedi: fix possible double free
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b4010e88686ea40a56f016f3c27753af6b3c766
---
libavfilter/vf_nnedi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_nnedi.c b/libavfilter/vf_nnedi.c
index b14aa64c04..9bad99e98a 100644
--- a/libavfilter/vf_nnedi.c
+++ b/libavfilter/vf_nnedi.c
@@ -809,8 +809,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *src)
ret = get_frame(ctx, 1);
if (ret < 0) {
av_frame_free(&s->dst);
- av_frame_free(&s->src);
av_frame_free(&s->second);
+ s->src = NULL;
return ret;
}
dst = s->dst;
More information about the ffmpeg-cvslog
mailing list