mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
avfilter/vaf_spectrumsynth: don't use uninitialized variable as scale
scale was never initialized. av_tx_init() will use default scale if we pass NULL. Fixes:b3117f376dSigned-off-by: Kacper Michajłow <kasper93@gmail.com> (cherry picked from commit6302ff1fd9) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
99bdc928f5
commit
a18b2da355
1 changed files with 2 additions and 2 deletions
|
|
@ -145,7 +145,7 @@ static int config_output(AVFilterLink *outlink)
|
|||
int height = ctx->inputs[0]->h;
|
||||
AVRational time_base = ctx->inputs[0]->time_base;
|
||||
AVRational frame_rate = inl0->frame_rate;
|
||||
float factor, overlap, scale;
|
||||
float factor, overlap;
|
||||
int i, ch, ret;
|
||||
|
||||
outlink->sample_rate = s->sample_rate;
|
||||
|
|
@ -180,7 +180,7 @@ static int config_output(AVFilterLink *outlink)
|
|||
s->win_size = s->size * 2;
|
||||
s->nb_freq = s->size;
|
||||
|
||||
ret = av_tx_init(&s->fft, &s->tx_fn, AV_TX_FLOAT_FFT, 1, s->win_size, &scale, 0);
|
||||
ret = av_tx_init(&s->fft, &s->tx_fn, AV_TX_FLOAT_FFT, 1, s->win_size, NULL, 0);
|
||||
if (ret < 0) {
|
||||
av_log(ctx, AV_LOG_ERROR, "Unable to create FFT context. "
|
||||
"The window size might be too high.\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue