Commit 6a074cfa authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_framerate: fix frame leak at uninit

Reported-by: Andres Noetzli
Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 16f08b7a
......@@ -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]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment