[FFmpeg-cvslog] lavfi/avf_showspectrum: fix output pts computation.
Nicolas George
git at videolan.org
Thu Aug 14 19:53:45 CEST 2014
ffmpeg | branch: master | Nicolas George <george at nsup.org> | Sun Aug 3 16:23:37 2014 +0200| [65b284a4aef68fc88c80d970a41339113293dc18] | committer: Nicolas George
lavfi/avf_showspectrum: fix output pts computation.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=65b284a4aef68fc88c80d970a41339113293dc18
---
libavfilter/avf_showspectrum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index e3ae6ea..28db8b1 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);
More information about the ffmpeg-cvslog
mailing list