aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-29 12:57:58 +0100
committerPaul B Mahol <onemda@gmail.com>2019-10-29 12:57:58 +0100
commit4ce263a7fd1c8dc5625a9e0ca4ccba07c5ba90e4 (patch)
tree68be32ae1fe43f0dd856cd5abb3a9bb13f21bfb8
parent1c3b70e2e078bf0901b3af5491f923818809de37 (diff)
downloadffmpeg-4ce263a7fd1c8dc5625a9e0ca4ccba07c5ba90e4.tar.gz
avfilter/vf_vfrdet: fix reporting max delta
If only first delta was big it was previously discarded.
-rw-r--r--libavfilter/vf_vfrdet.c2
1 files changed, 2 insertions, 0 deletions
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) {