[FFmpeg-devel] [PATCH 2/2] lavfi/avf_showspectrum: fix output pts computation.
Nicolas George
george at nsup.org
Sun Aug 3 16:29:37 CEST 2014
Signed-off-by: Nicolas George <george at nsup.org>
---
libavfilter/avf_showspectrum.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
These two patches fix a bunch of "non-monotonically" warnings/errors.
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);
--
2.0.1
More information about the ffmpeg-devel
mailing list