avfilter/af_afftfilt: Set last_expr to the default

This fixes a null pointer dereferece
Fixes: CID1351346

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-02-04 14:04:43 +01:00
parent a969a914f5
commit f89bc661b4

View File

@ -94,7 +94,8 @@ static int config_input(AVFilterLink *inlink)
char *saveptr = NULL;
int ret = 0, ch, i;
float overlap;
char *args, *last_expr = NULL;
char *args;
const char *last_expr = "1";
s->fft = av_fft_init(s->fft_bits, 0);
s->ifft = av_fft_init(s->fft_bits, 1);