diff options
author | Paul B Mahol <onemda@gmail.com> | 2023-01-17 18:48:09 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2023-01-17 18:49:31 +0100 |
commit | 04bbf5f70d281f11d1ee94c8ee3a91912d3a6c6a (patch) | |
tree | e517ceb4540da1edeec77779152f3f8528352f04 /libavfilter | |
parent | a13931843eccb35fe6a594a33e04869173cb94b6 (diff) | |
download | ffmpeg-04bbf5f70d281f11d1ee94c8ee3a91912d3a6c6a.tar.gz |
avfilter/vsrc_gradients: set output video frame duration
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vsrc_gradients.c | 1 |
1 files changed, 1 insertions, 0 deletions
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))); |