[FFmpeg-devel] [PATCH 2/2] vf_fps: Fix memory leak introduced by eea64ef4

Thierry Foucu tfoucu at gmail.com
Fri Sep 15 18:49:54 EEST 2017


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

diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c
index 09fc66a73c..1e5d07e31c 100644
--- a/libavfilter/vf_fps.c
+++ b/libavfilter/vf_fps.c
@@ -171,6 +171,7 @@ static int request_frame(AVFilterLink *outlink)
                         s->frames_out++;
                         if (j > 0) s->dup++;
                     }
+                    av_frame_free(&buf);
                 } else {
                     /* for delta less or equal to 0, we should drop the frame,
                      * otherwise, we will have one or more extra frames */
-- 
2.14.1.690.gbb1197296e-goog



More information about the ffmpeg-devel mailing list