From 4805953bcdf19ef48fbe76e005de11a2732f02b9 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 11 Aug 2022 13:34:41 +0200 Subject: lavfi/vf_fps: set frame duration --- libavfilter/vf_fps.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_fps.c b/libavfilter/vf_fps.c index 0e5a1fec35..051d278f54 100644 --- a/libavfilter/vf_fps.c +++ b/libavfilter/vf_fps.c @@ -291,6 +291,7 @@ static int write_frame(AVFilterContext *ctx, FPSContext *s, AVFilterLink *outlin // Make sure Closed Captions will not be duplicated av_frame_remove_side_data(s->frames[0], AV_FRAME_DATA_A53_CC); frame->pts = s->next_pts++; + frame->duration = 1; av_log(ctx, AV_LOG_DEBUG, "Writing frame with pts %"PRId64" to pts %"PRId64"\n", s->frames[0]->pts, frame->pts); -- cgit v1.2.3