1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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

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];