avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ

This commit is contained in:
Paul B Mahol 2019-11-17 12:19:39 +01:00
parent 7db61bf0e3
commit c588a0f528
1 changed files with 1 additions and 1 deletions

View File

@ -315,7 +315,7 @@ static int filter_frame(AVFilterLink *inlink)
}
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++) {
float *dst = (float *)out->extended_data[ch];