lavfi/avf_showspectrum: set output frame rate.
authorNicolas George <george@nsup.org>
Sun, 3 Aug 2014 14:23:18 +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 4a4b4f4..e3ae6ea 100644 (file)
@@ -246,6 +246,8 @@ static int config_output(AVFilterLink *outlink)
     if (s->xpos >= outlink->w)
         s->xpos = 0;
 
+    outlink->frame_rate = av_make_q(inlink->sample_rate, win_size);
+
     s->combine_buffer =
         av_realloc_f(s->combine_buffer, outlink->h * 3,
                      sizeof(*s->combine_buffer));