X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_afftfilt.c;h=7506aebe9f5c0cc5f0a17ddeabb08f699cf35809;hb=8446318502bf21347a4867a5a1fcd8d9bfbd6a41;hp=28b4bda8da0f8253215d60977ae17eb08e0a2841;hpb=0c4137bcb742bccc29f87145615a120bc5988c24;p=ffmpeg diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c index 28b4bda8da0..7506aebe9f5 100644 --- a/libavfilter/af_afftfilt.c +++ b/libavfilter/af_afftfilt.c @@ -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];