lavf/vf_framerate: Fix frame leak when increasing framerate.
authorAlexis Ballier <aballier@gentoo.org>
Sat, 11 Mar 2017 19:18:54 +0000 (20:18 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 16 Mar 2017 15:16:05 +0000 (16:16 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_framerate.c

index 237a487..b4a74f7 100644 (file)
@@ -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]);
     }