mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/avf_aphasemeter: set frame durations
The filter is supposed to produce CFR output.
This commit is contained in:
parent
ed48d00861
commit
ae84484c78
|
@ -327,6 +327,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||
AVFrame *clone;
|
||||
|
||||
s->out->pts = in->pts;
|
||||
s->out->duration = av_rescale_q(1, av_inv_q(outlink->frame_rate), outlink->time_base);
|
||||
|
||||
clone = av_frame_clone(s->out);
|
||||
if (!clone)
|
||||
return AVERROR(ENOMEM);
|
||||
|
|
Loading…
Reference in New Issue