vf_fps: Fix memory leak introduced by eea64ef4
authorThierry Foucu <tfoucu@gmail.com>
Fri, 15 Sep 2017 15:49:54 +0000 (08:49 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 15 Sep 2017 20:40:21 +0000 (22:40 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_fps.c

index 09fc66a..1e5d07e 100644 (file)
@@ -171,6 +171,7 @@ static int request_frame(AVFilterLink *outlink)
                         s->frames_out++;
                         if (j > 0) s->dup++;
                     }
                         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 */
                 } else {
                     /* for delta less or equal to 0, we should drop the frame,
                      * otherwise, we will have one or more extra frames */