avfilter/vsrc_life: set video frame duration
This commit is contained in:
parent
45910b2504
commit
e845c3e00a
@ -404,6 +404,7 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
picref->sample_aspect_ratio = (AVRational) {1, 1};
|
picref->sample_aspect_ratio = (AVRational) {1, 1};
|
||||||
picref->pts = life->pts++;
|
picref->pts = life->pts++;
|
||||||
|
picref->duration = 1;
|
||||||
|
|
||||||
life->draw(outlink->src, picref);
|
life->draw(outlink->src, picref);
|
||||||
evolve(outlink->src);
|
evolve(outlink->src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user