summaryrefslogtreecommitdiff
path: root/libavfilter/vf_mp.c
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-04 03:45:52 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-04 03:47:16 +0100
commit359cd12a43242e3d2682c27a1a0f7dc6b2cfc6fb (patch)
tree12c30c0c5350f98dcc3df17fc77165b06386b04b /libavfilter/vf_mp.c
parentef1868351d82bb9435138c8de2828178fd900825 (diff)
lavfi/mp: fix invalid read with filters with no argument.
Diffstat (limited to 'libavfilter/vf_mp.c')
-rw-r--r--libavfilter/vf_mp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index c70ab28a6c..5217e032f6 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -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))