From 04bbf5f70d281f11d1ee94c8ee3a91912d3a6c6a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 17 Jan 2023 18:48:09 +0100 Subject: [PATCH] avfilter/vsrc_gradients: set output video frame duration --- libavfilter/vsrc_gradients.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vsrc_gradients.c b/libavfilter/vsrc_gradients.c index c005613d42..3c524b9242 100644 --- a/libavfilter/vsrc_gradients.c +++ b/libavfilter/vsrc_gradients.c @@ -402,6 +402,7 @@ static int activate(AVFilterContext *ctx) frame->pict_type = AV_PICTURE_TYPE_I; frame->sample_aspect_ratio = (AVRational) {1, 1}; frame->pts = s->pts++; + frame->duration = 1; ff_filter_execute(ctx, s->draw_slice, frame, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));