avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
parent
7db61bf0e3
commit
c588a0f528
|
@ -315,7 +315,7 @@ static int filter_frame(AVFilterLink *inlink)
|
||||||
}
|
}
|
||||||
|
|
||||||
out->pts = s->pts;
|
out->pts = s->pts;
|
||||||
s->pts += s->hop_size;
|
s->pts += av_rescale_q(s->hop_size, (AVRational){1, outlink->sample_rate}, outlink->time_base);
|
||||||
|
|
||||||
for (ch = 0; ch < inlink->channels; ch++) {
|
for (ch = 0; ch < inlink->channels; ch++) {
|
||||||
float *dst = (float *)out->extended_data[ch];
|
float *dst = (float *)out->extended_data[ch];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user