[FFmpeg-cvslog] lavfi/vf_minterpolate: set output frame durations

Anton Khirnov git at videolan.org
Thu Oct 13 11:21:40 EEST 2022


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Oct 11 10:47:42 2022 +0200| [cdc4d9908954cd33089a0dd7a191979fe58cb505] | committer: Anton Khirnov

lavfi/vf_minterpolate: set output frame durations

This filter produces CFR output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cdc4d9908954cd33089a0dd7a191979fe58cb505
---

 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);
 



More information about the ffmpeg-cvslog mailing list