aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-07 11:37:05 +0200
committerPaul B Mahol <onemda@gmail.com>2019-10-07 11:37:05 +0200
commit0c4137bcb742bccc29f87145615a120bc5988c24 (patch)
tree168b9d3cef4672d131fe3c7fb9c1dd2126c6a0e0
parent5b4010e88686ea40a56f016f3c27753af6b3c766 (diff)
downloadffmpeg-0c4137bcb742bccc29f87145615a120bc5988c24.tar.gz
avfilter/af_afftfilt: fix possible invalid memory access
-rw-r--r--libavfilter/af_afftfilt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/af_afftfilt.c b/libavfilter/af_afftfilt.c
index 86278ef35b..28b4bda8da 100644
--- a/libavfilter/af_afftfilt.c
+++ b/libavfilter/af_afftfilt.c
@@ -188,6 +188,8 @@ static int config_input(AVFilterLink *inlink)
if (!args)
return AVERROR(ENOMEM);
+ saveptr = NULL;
+ last_expr = "1";
for (ch = 0; ch < inlink->channels; ch++) {
char *arg = av_strtok(ch == 0 ? args : NULL, "|", &saveptr);