Browse code

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.

Stefano Sabatini authored on 2011/03/28 07:03:19
Showing 1 changed files
... ...
@@ -739,7 +739,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
739 739
 
740 740
     m->avfctx= ctx;
741 741
 
742
-    if(!args || 1!=sscanf(args, "%255[^:]", name)){
742
+    if(!args || 1!=sscanf(args, "%255[^:=]", name)){
743 743
         av_log(ctx, AV_LOG_ERROR, "Invalid parameter.\n");
744 744
         return AVERROR(EINVAL);
745 745
     }