Commit 7db61bf0 authored by Paul B Mahol's avatar Paul B Mahol

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

parent 90622f9e
...@@ -585,7 +585,7 @@ static int filter_frame(AVFilterLink *inlink) ...@@ -585,7 +585,7 @@ static int filter_frame(AVFilterLink *inlink)
out->nb_samples = FFMIN(s->hop_size, s->samples_left); out->nb_samples = FFMIN(s->hop_size, s->samples_left);
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);
s->detected_errors += detected_errors; s->detected_errors += detected_errors;
s->nb_samples += out->nb_samples * inlink->channels; s->nb_samples += out->nb_samples * inlink->channels;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment