mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
avfilter/vsrc_mandelbrot: set video frame duration
This commit is contained in:
parent
96d4f74548
commit
45910b2504
@ -395,6 +395,7 @@ static int request_frame(AVFilterLink *link)
|
|||||||
|
|
||||||
picref->sample_aspect_ratio = (AVRational) {1, 1};
|
picref->sample_aspect_ratio = (AVRational) {1, 1};
|
||||||
picref->pts = s->pts++;
|
picref->pts = s->pts++;
|
||||||
|
picref->duration = 1;
|
||||||
|
|
||||||
draw_mandelbrot(link->src, (uint32_t*)picref->data[0], picref->linesize[0]/4, picref->pts);
|
draw_mandelbrot(link->src, (uint32_t*)picref->data[0], picref->linesize[0]/4, picref->pts);
|
||||||
return ff_filter_frame(link, picref);
|
return ff_filter_frame(link, picref);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user