mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/avf_showspectrum: fix output pts computation.
This commit is contained in:
parent
a3aaaec891
commit
65b284a4ae
@ -468,7 +468,7 @@ static int plot_spectrum_column(AVFilterLink *inlink, AVFrame *insamples, int nb
|
||||
}
|
||||
|
||||
outpicref->pts = insamples->pts +
|
||||
av_rescale_q(s->consumed,
|
||||
av_rescale_q(s->consumed + add_samples - win_size,
|
||||
(AVRational){ 1, inlink->sample_rate },
|
||||
outlink->time_base);
|
||||
ret = push_frame(outlink);
|
||||
|
Loading…
Reference in New Issue
Block a user