lavfi/avf_showspectrum: fix output pts computation.
authorNicolas George <george@nsup.org>
Sun, 3 Aug 2014 14:23:37 +0000 (16:23 +0200)
committerNicolas George <george@nsup.org>
Thu, 14 Aug 2014 12:23:59 +0000 (14:23 +0200)
libavfilter/avf_showspectrum.c

index e3ae6ea..28db8b1 100644 (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);