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:
Paul B Mahol 2015-09-12 02:34:52 +00:00
parent 16f08b7a09
commit 6a074cfa15

View 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]);
}