Browse Source

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

tags/n1.1
Clément Bœsch 12 years ago
parent
commit
359cd12a43
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavfilter/vf_mp.c

+ 3
- 1
libavfilter/vf_mp.c View File

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


Loading…
Cancel
Save