mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avfilter/af_adeclick: fix pts handling when timebase and 1/samplerate differ
This commit is contained in:
parent
90622f9e8f
commit
7db61bf0e3
@ -585,7 +585,7 @@ static int filter_frame(AVFilterLink *inlink)
|
||||
out->nb_samples = FFMIN(s->hop_size, s->samples_left);
|
||||
|
||||
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->nb_samples += out->nb_samples * inlink->channels;
|
||||
|
Loading…
Reference in New Issue
Block a user