lavfi/avf_aphasemeter: 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 ed48d00861
commit ae84484c78
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *clone;
s->out->pts = in->pts;
s->out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
clone = av_frame_clone(s->out);
if (!clone)
return AVERROR(ENOMEM);