Commit b66acf4a authored by Paul B Mahol's avatar Paul B Mahol

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

parent 0a17a301
......@@ -298,7 +298,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
out->nb_samples = FFMIN(s->eof_left, s->offset);
s->eof_left -= out->nb_samples;
}
s->pts += s->offset;
s->pts += av_rescale_q(s->offset, (AVRational){1, outlink->sample_rate}, outlink->time_base);
return ff_filter_frame(outlink, out);
}
......
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