aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2014-08-03 16:23:37 +0200
committerNicolas George <george@nsup.org>2014-08-14 14:23:59 +0200
commit65b284a4aef68fc88c80d970a41339113293dc18 (patch)
tree7fb5f0b3e91d42a6bff2d4c52533b73bc805dbd0
parenta3aaaec8916b8fae810ad35ff3ca299336f0bda0 (diff)
downloadffmpeg-65b284a4aef68fc88c80d970a41339113293dc18.tar.gz
lavfi/avf_showspectrum: fix output pts computation.
-rw-r--r--libavfilter/avf_showspectrum.c2
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);