Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-11-17 14:19:39 +0300
committerPaul B Mahol <onemda@gmail.com>2019-11-17 14:19:39 +0300
commitc588a0f5281f242f63838ed58fee905308a320a6 (patch)
tree35951ea0d854da5d459ddbddd31ec68ec3ba0982 /libavfilter/af_afftfilt.c
parent7db61bf0e3b72274b5fe2f76fdb71edccba209a6 (diff)
avfilter/af_afftfilt: fix pts handling when timebase and 1/samplerate differ
Diffstat (limited to 'libavfilter/af_afftfilt.c')
-rw-r--r--libavfilter/af_afftfilt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c
index 28b4bda8da..7506aebe9f 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];