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;
|
AVFrame *clone;
|
||||||
|
|
||||||
s->out->pts = in->pts;
|
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);
|
clone = av_frame_clone(s->out);
|
||||||
if (!clone)
|
if (!clone)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user