Commit f89bc661 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/af_afftfilt: Set last_expr to the default

This fixes a null pointer dereferece
Fixes: CID1351346
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent a969a914
...@@ -94,7 +94,8 @@ static int config_input(AVFilterLink *inlink) ...@@ -94,7 +94,8 @@ static int config_input(AVFilterLink *inlink)
char *saveptr = NULL; char *saveptr = NULL;
int ret = 0, ch, i; int ret = 0, ch, i;
float overlap; float overlap;
char *args, *last_expr = NULL; char *args;
const char *last_expr = "1";
s->fft = av_fft_init(s->fft_bits, 0); s->fft = av_fft_init(s->fft_bits, 0);
s->ifft = av_fft_init(s->fft_bits, 1); s->ifft = av_fft_init(s->fft_bits, 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment