Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-10-11 11:47:42 +0300
committerAnton Khirnov <anton@khirnov.net>2022-10-13 11:19:13 +0300
commitcdc4d9908954cd33089a0dd7a191979fe58cb505 (patch)
treecc10a3c8c6b255d8c7a168f6f3a8548529e748d3 /libavfilter
parentc9508a019daf12211124c42f63c097d386a34677 (diff)
lavfi/vf_minterpolate: set output frame durations
This filter produces CFR output.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_minterpolate.c1
1 files changed, 1 insertions, 0 deletions
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);