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

This commit is contained in:
Paul B Mahol 2019-11-17 12:21:10 +01:00
parent c588a0f528
commit 115537f487

View File

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