Commit 359cd12a authored by Clément Bœsch's avatar Clément Bœsch

lavfi/mp: fix invalid read with filters with no argument.

parent ef186835
......@@ -683,7 +683,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n");
return AVERROR(EINVAL);
}
args+= strlen(name)+1;
args += strlen(name);
if (args[0] == '=')
args++;
for(i=0; ;i++){
if(!filters[i] || !strcmp(name, filters[i]->name))
......
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