Commit 115537f4 authored by Paul B Mahol's avatar Paul B Mahol

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

parent c588a0f5
......@@ -1260,7 +1260,7 @@ static int output_frame(AVFilterLink *inlink)
ret = ff_filter_frame(outlink, out);
if (ret < 0)
goto end;
s->pts += s->sample_advance;
s->pts += av_rescale_q(s->sample_advance, (AVRational){1, outlink->sample_rate}, outlink->time_base);
end:
av_frame_free(&in);
......
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