From 4ce263a7fd1c8dc5625a9e0ca4ccba07c5ba90e4 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 29 Oct 2019 12:57:58 +0100 Subject: [PATCH] avfilter/vf_vfrdet: fix reporting max delta If only first delta was big it was previously discarded. --- libavfilter/vf_vfrdet.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_vfrdet.c b/libavfilter/vf_vfrdet.c index cac96e29a2..051b53babd 100644 --- a/libavfilter/vf_vfrdet.c +++ b/libavfilter/vf_vfrdet.c @@ -44,6 +44,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) if (s->delta == AV_NOPTS_VALUE) { s->delta = delta; + s->min_delta = delta; + s->max_delta = delta; } if (s->delta != delta) {