lavfi/vf_tinterlace: set frame durations

This filter is supposed to produce CFR output.
This commit is contained in:
Anton Khirnov 2022-10-05 11:11:08 +02:00
parent 7c299c1178
commit 19c701fac8
1 changed files with 1 additions and 0 deletions

View File

@ -510,6 +510,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref)
}
out->pts = av_rescale_q(out->pts, tinterlace->preout_time_base, outlink->time_base);
out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
ret = ff_filter_frame(outlink, out);
return ret;