mirror of
https://github.com/librempeg/librempeg
synced 2024-11-23 19:58:59 +00:00
avfilter/af_afftfilt: fix possible invalid memory access
This commit is contained in:
parent
5b4010e886
commit
0c4137bcb7
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user