summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showcqt.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-11-19 00:04:06 +0100
committerPaul B Mahol <onemda@gmail.com>2022-11-19 00:25:47 +0100
commit3bcec58535d395945a390bdc7af4048a7abc60eb (patch)
tree546bd261df502f7cc20de858a2e624974f9adaee /libavfilter/avf_showcqt.c
parentfced45fd9528e93fd71e792f3ddd9eb4667c2d31 (diff)
avfilter: fix av_tx_fn stride usage for complex inputs
Diffstat (limited to 'libavfilter/avf_showcqt.c')
-rw-r--r--libavfilter/avf_showcqt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/avf_showcqt.c b/libavfilter/avf_showcqt.c
index c019dc2564..fe3dc286b3 100644
--- a/libavfilter/avf_showcqt.c
+++ b/libavfilter/avf_showcqt.c
@@ -1148,7 +1148,7 @@ static int plot_cqt(AVFilterContext *ctx, AVFrame **frameout)
}
}
- s->tx_fn(s->fft_ctx, s->fft_result, s->fft_input, sizeof(float));
+ s->tx_fn(s->fft_ctx, s->fft_result, s->fft_input, sizeof(AVComplexFloat));
s->fft_result[s->fft_len] = s->fft_result[0];
UPDATE_TIME(s->fft_time);
@@ -1356,7 +1356,7 @@ static int config_output(AVFilterLink *outlink)
AVFilterContext *ctx = outlink->src;
AVFilterLink *inlink = ctx->inputs[0];
ShowCQTContext *s = ctx->priv;
- float scale;
+ float scale = 1.f;
int ret;
common_uninit(s);