[FFmpeg-cvslog] lavf/vf_framerate: Fix frame leak when increasing framerate.

Alexis Ballier git at videolan.org
Thu Mar 16 17:17:08 EET 2017


ffmpeg | branch: master | Alexis Ballier <aballier at gentoo.org> | Sat Mar 11 20:18:54 2017 +0100| [bbc8f3d20e09ab238e345a02ed983434d2efe633] | committer: Michael Niedermayer

lavf/vf_framerate: Fix frame leak when increasing framerate.

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavfilter/vf_framerate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/vf_framerate.c b/libavfilter/vf_framerate.c
index 237a487..b4a74f7 100644
--- a/libavfilter/vf_framerate.c
+++ b/libavfilter/vf_framerate.c
@@ -526,7 +526,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     FrameRateContext *s = ctx->priv;
     int i;
 
-    for (i = s->frst + 1; i < s->last; i++) {
+    for (i = s->frst; i < s->last; i++) {
         if (s->srce[i] && (s->srce[i] != s->srce[i + 1]))
             av_frame_free(&s->srce[i]);
     }



More information about the ffmpeg-cvslog mailing list