aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-05 11:11:08 +0200
committerAnton Khirnov <anton@khirnov.net>2022-10-13 10:19:13 +0200
commit19c701fac86ba069461b5ca1c572467f492c4f57 (patch)
treecd127d521289bdc41cffdac6c84690bb232b8ec1
parent7c299c117823a766558e893ae4e9ac91b9dcdc7b (diff)
downloadffmpeg-19c701fac86ba069461b5ca1c572467f492c4f57.tar.gz
lavfi/vf_tinterlace: set frame durations
This filter is supposed to produce CFR output.
-rw-r--r--libavfilter/vf_tinterlace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_tinterlace.c b/libavfilter/vf_tinterlace.c
index 399adc102d..7c54861de4 100644
--- a/libavfilter/vf_tinterlace.c
+++ b/libavfilter/vf_tinterlace.c
@@ -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;