From c50998675d0c1a932dcf2b79a150a4dfe430050c Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 28 Mar 2011 00:03:19 +0200 Subject: [PATCH] mp: extend syntax, make it accept mp=filter=params Make the mp wrapper accept the syntax mp=filter=params as alternative to mp=filter:params. The alternative syntax is sligthly more readable and should simplify copy&paste of MPlayer filter strings to the mp filter. --- libavfilter/vf_mp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c index 484572cb9..374acac20 100644 --- a/libavfilter/vf_mp.c +++ b/libavfilter/vf_mp.c @@ -739,7 +739,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) m->avfctx= ctx; - if(!args || 1!=sscanf(args, "%255[^:]", name)){ + if(!args || 1!=sscanf(args, "%255[^:=]", name)){ av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n"); return AVERROR(EINVAL); } -- 2.11.0