1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_vfrdet: fix reporting max delta

If only first delta was big it was previously discarded.
This commit is contained in:
Paul B Mahol 2019-10-29 12:57:58 +01:00
parent 1c3b70e2e0
commit 4ce263a7fd

View 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) {