avfilter/af_speechnorm: improve EOF timestamp precision
This commit is contained in:
parent
f78d0f67be
commit
db2514a5dc
@ -416,7 +416,8 @@ static int filter_frame(AVFilterContext *ctx)
|
||||
|
||||
s->filter_channels[s->link](ctx, in, in->nb_samples);
|
||||
|
||||
s->pts = in->pts + in->nb_samples;
|
||||
s->pts = in->pts + av_rescale_q(in->nb_samples, av_make_q(1, outlink->sample_rate),
|
||||
outlink->time_base);
|
||||
|
||||
return ff_filter_frame(outlink, in);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user