avfilter/vsrc_gradients: set output video frame duration

This commit is contained in:
Paul B Mahol 2023-01-17 18:48:09 +01:00
parent a13931843e
commit 04bbf5f70d
1 changed files with 1 additions and 0 deletions

View File

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