diff mbox

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

Message ID 20170915154954.138641-1-tfoucu@gmail.com
State Accepted
Commit 42a41c3956975a4404d0c48bedd51f144c90c08b
Headers show

Commit Message

Thierry Foucu Sept. 15, 2017, 3:49 p.m. UTC
---
 libavfilter/vf_fps.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Sept. 15, 2017, 8:37 p.m. UTC | #1
On Fri, Sep 15, 2017 at 08:49:54AM -0700, Thierry Foucu wrote:
> ---
>  libavfilter/vf_fps.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

thank

[...]
diff mbox

Patch

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 */