Browse Source

lavfi/avf_showspectrum: set output frame rate.

tags/n2.4
Nicolas George 10 years ago
parent
commit
a3aaaec891
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavfilter/avf_showspectrum.c

+ 2
- 0
libavfilter/avf_showspectrum.c View 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));


Loading…
Cancel
Save