[FFmpeg-devel] [PATCH 4/5] lavfi/vf_minterpolate: set output frame durations
Anton Khirnov
anton at khirnov.net
Tue Oct 11 12:54:44 EEST 2022
This filter produces CFR output.
---
libavfilter/vf_minterpolate.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_minterpolate.c b/libavfilter/vf_minterpolate.c
index 97d0e96c59..f2de61ca39 100644
--- a/libavfilter/vf_minterpolate.c
+++ b/libavfilter/vf_minterpolate.c
@@ -1189,6 +1189,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *avf_in)
av_frame_copy_props(avf_out, mi_ctx->frames[NB_FRAMES - 1].avf);
avf_out->pts = mi_ctx->out_pts++;
+ avf_out->duration = 1;
interpolate(inlink, avf_out);
--
2.35.1
More information about the ffmpeg-devel
mailing list