summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showspectrum.c
diff options
context:
space:
mode:
authorNicolas George <george@nsup.org>2014-08-03 16:23:18 +0200
committerNicolas George <george@nsup.org>2014-08-14 14:23:59 +0200
commita3aaaec8916b8fae810ad35ff3ca299336f0bda0 (patch)
tree85b00cab9eeb4277b57825f756c2b8fe2e203637 /libavfilter/avf_showspectrum.c
parent4ba45c189ccafdedcdb703e40441fbd24fe62989 (diff)
lavfi/avf_showspectrum: set output frame rate.
Diffstat (limited to 'libavfilter/avf_showspectrum.c')
-rw-r--r--libavfilter/avf_showspectrum.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c
index 4a4b4f4c7a..e3ae6ea045 100644
--- a/libavfilter/avf_showspectrum.c
+++ b/libavfilter/avf_showspectrum.c
@@ -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));