mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_afftdn: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
parent
c588a0f528
commit
115537f487
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user