[FFmpeg-cvslog] lavfi/vf_tinterlace: set frame durations
Anton Khirnov
git at videolan.org
Thu Oct 13 11:21:21 EEST 2022
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Oct 5 11:11:08 2022 +0200| [19c701fac86ba069461b5ca1c572467f492c4f57] | committer: Anton Khirnov
lavfi/vf_tinterlace: set frame durations
This filter is supposed to produce CFR output.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=19c701fac86ba069461b5ca1c572467f492c4f57
---
libavfilter/vf_tinterlace.c | 1 +
1 file changed, 1 insertion(+)
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;
More information about the ffmpeg-cvslog
mailing list