[FFmpeg-cvslog] mp: extend syntax, make it accept mp=filter=params

Stefano Sabatini git at videolan.org
Mon Mar 28 23:55:53 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Mon Mar 28 00:03:19 2011 +0200| [c50998675d0c1a932dcf2b79a150a4dfe430050c] | committer: Stefano Sabatini

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c50998675d0c1a932dcf2b79a150a4dfe430050c
---

 libavfilter/vf_mp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index 484572c..374acac 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);
     }



More information about the ffmpeg-cvslog mailing list