[FFmpeg-cvslog] r25856 - in trunk: doc/filters.texi libavfilter/vf_frei0r.c
stefano
subversion
Tue Nov 30 21:14:41 CET 2010
Author: stefano
Date: Tue Nov 30 21:14:41 2010
New Revision: 25856
Log:
Extend the frei0r filter syntax.
Make it accept the frei0r=filtername=params as alternative to
frei0r=filtername:params.
Modified:
trunk/doc/filters.texi
trunk/libavfilter/vf_frei0r.c
Modified: trunk/doc/filters.texi
==============================================================================
--- trunk/doc/filters.texi Tue Nov 30 21:14:36 2010 (r25855)
+++ trunk/doc/filters.texi Tue Nov 30 21:14:41 2010 (r25856)
@@ -293,7 +293,7 @@ header and configure FFmpeg with --enabl
The filter supports the syntax:
@example
- at var{filter_name}:@var{param1}:@var{param2}:...:@var{paramN}
+ at var{filter_name}[@{:|=@}@var{param1}:@var{param2}:...:@var{paramN}]
@end example
@var{filter_name} is the name to the frei0r effect to load. If the
Modified: trunk/libavfilter/vf_frei0r.c
==============================================================================
--- trunk/libavfilter/vf_frei0r.c Tue Nov 30 21:14:36 2010 (r25855)
+++ trunk/libavfilter/vf_frei0r.c Tue Nov 30 21:14:41 2010 (r25856)
@@ -277,11 +277,11 @@ static av_cold int frei0r_init(AVFilterC
static av_cold int filter_init(AVFilterContext *ctx, const char *args, void *opaque)
{
Frei0rContext *frei0r = ctx->priv;
- char dl_name[1024];
+ char dl_name[1024], c;
*frei0r->params = 0;
if (args)
- sscanf(args, "%1023[^:]:%255c", dl_name, frei0r->params);
+ sscanf(args, "%1023[^:=]%c%255c", dl_name, &c, frei0r->params);
return frei0r_init(ctx, dl_name, F0R_PLUGIN_TYPE_FILTER);
}
More information about the ffmpeg-cvslog
mailing list