[FFmpeg-cvslog] avfilter/vf_guided: Fix leak of frames

Andreas Rheinhardt git at videolan.org
Sun May 23 15:10:38 EEST 2021


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri May 14 10:37:00 2021 +0200| [376e80ad7440cbb6e857ea1b48deb0b8cdf3ae90] | committer: Andreas Rheinhardt

avfilter/vf_guided: Fix leak of frames

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

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

 libavfilter/vf_guided.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c
index b0adf75886..6ded4c7c59 100644
--- a/libavfilter/vf_guided.c
+++ b/libavfilter/vf_guided.c
@@ -343,6 +343,7 @@ static int process_frame(FFFrameSync *fs)
                        s->planewidth[plane], s->planeheight[plane],
                        main_frame->linesize[plane] / 2, ref_frame->linesize[plane] / 2, out_frame->linesize[plane] / 2, (1 << s->depth) - 1.f);
     }
+    av_frame_free(&main_frame);
 
     return ff_filter_frame(outlink, out_frame);
 }



More information about the ffmpeg-cvslog mailing list