diff options
author | Nicolas George <george@nsup.org> | 2014-08-03 16:23:18 +0200 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2014-08-14 14:23:59 +0200 |
commit | a3aaaec8916b8fae810ad35ff3ca299336f0bda0 (patch) | |
tree | 85b00cab9eeb4277b57825f756c2b8fe2e203637 /libavfilter | |
parent | 4ba45c189ccafdedcdb703e40441fbd24fe62989 (diff) | |
download | ffmpeg-a3aaaec8916b8fae810ad35ff3ca299336f0bda0.tar.gz |
lavfi/avf_showspectrum: set output frame rate.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avf_showspectrum.c | 2 |
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)); |