Commit 0c4137bc authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_afftfilt: fix possible invalid memory access

parent 5b4010e8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment