diff options
author | Nicolas George <george@nsup.org> | 2014-08-03 16:23:37 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2014-08-14 14:23:59 +0200 |
commit | 65b284a4aef68fc88c80d970a41339113293dc18 (patch) | |
tree | 7fb5f0b3e91d42a6bff2d4c52533b73bc805dbd0 /libavfilter/avf_showspectrum.c | |
parent | a3aaaec8916b8fae810ad35ff3ca299336f0bda0 (diff) | |
download | ffmpeg-65b284a4aef68fc88c80d970a41339113293dc18.tar.gz |
lavfi/avf_showspectrum: fix output pts computation.
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index e3ae6ea045..28db8b1009 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -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); |