[FFmpeg-cvslog] avfilter/af_afftfilt: Set last_expr to the default

Michael Niedermayer git at videolan.org
Thu Feb 4 15:15:06 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Feb  4 14:04:43 2016 +0100| [f89bc661b429e02dc244c5b0e1a4441c6f72a9ec] | committer: Michael Niedermayer

avfilter/af_afftfilt: Set last_expr to the default

This fixes a null pointer dereferece
Fixes: CID1351346

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f89bc661b429e02dc244c5b0e1a4441c6f72a9ec
---

 libavfilter/af_afftfilt.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);



More information about the ffmpeg-cvslog mailing list