avfilter/af_afftfilt: fix possible invalid memory access

This commit is contained in:
Paul B Mahol 2019-10-07 11:37:05 +02:00
parent 5b4010e886
commit 0c4137bcb7

View File

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