mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
lavfi/avf_showspectrum: set output frame rate.
This commit is contained in:
parent
4ba45c189c
commit
a3aaaec891
@ -246,6 +246,8 @@ static int config_output(AVFilterLink *outlink)
|
|||||||
if (s->xpos >= outlink->w)
|
if (s->xpos >= outlink->w)
|
||||||
s->xpos = 0;
|
s->xpos = 0;
|
||||||
|
|
||||||
|
outlink->frame_rate = av_make_q(inlink->sample_rate, win_size);
|
||||||
|
|
||||||
s->combine_buffer =
|
s->combine_buffer =
|
||||||
av_realloc_f(s->combine_buffer, outlink->h * 3,
|
av_realloc_f(s->combine_buffer, outlink->h * 3,
|
||||||
sizeof(*s->combine_buffer));
|
sizeof(*s->combine_buffer));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user