1
0
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:
Nicolas George 2014-08-03 16:23:37 +02:00
parent a3aaaec891
commit 65b284a4ae

View File

@ -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);