avfilter/avf_showspectrum: properly initialize pts
authorPaul B Mahol <onemda@gmail.com>
Mon, 22 May 2017 09:06:48 +0000 (11:06 +0200)
committerPaul B Mahol <onemda@gmail.com>
Mon, 22 May 2017 09:06:48 +0000 (11:06 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavfilter/avf_showspectrum.c

index bf0c244..ff66740 100644 (file)
@@ -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;