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