]> git.sesse.net Git - ffmpeg/commitdiff
mp: extend syntax, make it accept mp=filter=params
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 27 Mar 2011 22:03:19 +0000 (00:03 +0200)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 28 Mar 2011 20:50:09 +0000 (22:50 +0200)
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

index 484572cb96eba15ab24ee136490071105bdfb1ad..374acac20f1b6c3f7944899682deb670b5eb96cc 100644 (file)
@@ -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);
     }