diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-10-05 11:11:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-10-13 10:19:13 +0200 |
commit | 19c701fac86ba069461b5ca1c572467f492c4f57 (patch) | |
tree | cd127d521289bdc41cffdac6c84690bb232b8ec1 /libavfilter/vf_tinterlace.c | |
parent | 7c299c117823a766558e893ae4e9ac91b9dcdc7b (diff) | |
download | ffmpeg-19c701fac86ba069461b5ca1c572467f492c4f57.tar.gz |
lavfi/vf_tinterlace: set frame durations
This filter is supposed to produce CFR output.
Diffstat (limited to 'libavfilter/vf_tinterlace.c')
-rw-r--r-- | libavfilter/vf_tinterlace.c | 1 |
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; |