avfilter/vf_framerate: fix frame leak at uninit
authorPaul B Mahol <onemda@gmail.com>
Sat, 12 Sep 2015 02:34:52 +0000 (02:34 +0000)
committerPaul B Mahol <onemda@gmail.com>
Sat, 12 Sep 2015 03:13:34 +0000 (03:13 +0000)
Reported-by: Andres Noetzli
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/vf_framerate.c

index 1072e2d..687b9a5 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 + 1; i < s->last; i++) {
         if (s->srce[i] && (s->srce[i] != s->srce[i + 1]))
             av_frame_free(&s->srce[i]);
     }