avfilter/vf_vfrdet: fix reporting max delta
authorPaul B Mahol <onemda@gmail.com>
Tue, 29 Oct 2019 11:57:58 +0000 (12:57 +0100)
committerPaul B Mahol <onemda@gmail.com>
Tue, 29 Oct 2019 11:57:58 +0000 (12:57 +0100)
If only first delta was big it was previously discarded.

libavfilter/vf_vfrdet.c

index cac96e2..051b53b 100644 (file)
@@ -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) {