From f89bc661b429e02dc244c5b0e1a4441c6f72a9ec Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 4 Feb 2016 14:04:43 +0100 Subject: avfilter/af_afftfilt: Set last_expr to the default This fixes a null pointer dereferece Fixes: CID1351346 Signed-off-by: Michael Niedermayer --- libavfilter/af_afftfilt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libavfilter') diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c index 8c75b4f..8e41f52 100644 --- a/libavfilter/af_afftfilt.c +++ b/libavfilter/af_afftfilt.c @@ -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); -- cgit v1.1