1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vsrc_mandelbrot: set video frame duration

This commit is contained in:
Paul B Mahol 2023-01-17 15:40:39 +01:00
parent 96d4f74548
commit 45910b2504

View File

@ -395,6 +395,7 @@ static int request_frame(AVFilterLink *link)
picref->sample_aspect_ratio = (AVRational) {1, 1};
picref->pts = s->pts++;
picref->duration = 1;
draw_mandelbrot(link->src, (uint32_t*)picref->data[0], picref->linesize[0]/4, picref->pts);
return ff_filter_frame(link, picref);