mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-27 18:02:11 +00:00
avfilter/vf_framerate: fix frame leak at uninit
Reported-by: Andres Noetzli Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
16f08b7a09
commit
6a074cfa15
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user