[FFmpeg-devel] [PATCH 2/3] avfilter/vf_guided: Fix leak of frames

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Fri May 14 13:18:18 EEST 2021


Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavfilter/vf_guided.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_guided.c b/libavfilter/vf_guided.c
index e10d397f2e..ce78507eb6 100644
--- a/libavfilter/vf_guided.c
+++ b/libavfilter/vf_guided.c
@@ -353,6 +353,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);
 }
-- 
2.27.0



More information about the ffmpeg-devel mailing list