From 49d0678181af67455dfd23b98ab3857db1b68e67 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 22 May 2017 11:06:48 +0200 Subject: [PATCH] avfilter/avf_showspectrum: properly initialize pts Signed-off-by: Paul B Mahol --- libavfilter/avf_showspectrum.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index bf0c24437e..ff66740a3a 100644 --- a/libavfilter/avf_showspectrum.c +++ b/libavfilter/avf_showspectrum.c @@ -299,6 +299,8 @@ static int config_output(AVFilterLink *outlink) int i, fft_bits, h, w; float overlap; + s->pts = AV_NOPTS_VALUE; + if (!strcmp(ctx->filter->name, "showspectrumpic")) s->single_pic = 1;