diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-04 14:04:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-02-04 15:13:39 +0100 |
commit | f89bc661b429e02dc244c5b0e1a4441c6f72a9ec (patch) | |
tree | 9d397a502c3a44fc8453f61b985b2b202c5a8e7c /libavfilter | |
parent | a969a914f5586b1110d77736bc8a57bfe315f96d (diff) | |
download | ffmpeg-streaming-f89bc661b429e02dc244c5b0e1a4441c6f72a9ec.zip ffmpeg-streaming-f89bc661b429e02dc244c5b0e1a4441c6f72a9ec.tar.gz |
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>
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_afftfilt.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |