Browse code

lavf/vf_framerate: Fix frame leak when increasing framerate.

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

Alexis Ballier authored on 2017/03/12 04:18:54
Showing 1 changed files
... ...
@@ -526,7 +526,7 @@ static av_cold void uninit(AVFilterContext *ctx)
526 526
     FrameRateContext *s = ctx->priv;
527 527
     int i;
528 528
 
529
-    for (i = s->frst + 1; i < s->last; i++) {
529
+    for (i = s->frst; i < s->last; i++) {
530 530
         if (s->srce[i] && (s->srce[i] != s->srce[i + 1]))
531 531
             av_frame_free(&s->srce[i]);
532 532
     }