mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avfilter/vsrc_life: set video frame duration
This commit is contained in:
parent
45910b2504
commit
e845c3e00a
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue