You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
lavfi/mp: fix invalid read with filters with no argument.
This commit is contained in:
@ -683,7 +683,9 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
|
|||||||
av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n");
|
av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
args+= strlen(name)+1;
|
args += strlen(name);
|
||||||
|
if (args[0] == '=')
|
||||||
|
args++;
|
||||||
|
|
||||||
for(i=0; ;i++){
|
for(i=0; ;i++){
|
||||||
if(!filters[i] || !strcmp(name, filters[i]->name))
|
if(!filters[i] || !strcmp(name, filters[i]->name))
|
||||||
|
Reference in New Issue
Block a user