lavfi/avf_avectorscope: set frame durations

The filter is supposed to produce CFR output.
This commit is contained in:
Anton Khirnov 2022-08-16 16:26:11 +02:00
parent ae84484c78
commit 7d13c5dff0
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
memset(s->outpicref->data[0] + i * s->outpicref->linesize[0], 0, outlink->w * 4);
}
s->outpicref->pts = av_rescale_q(insamples->pts, inlink->time_base, outlink->time_base);
s->outpicref->duration = 1;
av_frame_make_writable(s->outpicref);
ff_filter_execute(ctx, fade, NULL, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));