Commit bbc8f3d2 authored by Alexis Ballier's avatar Alexis Ballier Committed by Michael Niedermayer

lavf/vf_framerate: Fix frame leak when increasing framerate.

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0c6105dd
......@@ -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]);
}
......
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