mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavf/vf_framerate: Fix frame leak when increasing framerate.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0c6105dde0
commit
bbc8f3d20e
@ -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]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user