[FFmpeg-devel] [PATCH] Extend slicify filter to make it accept a parametric value

Stefano Sabatini stefano.sabatini-lala
Sat Mar 13 11:40:33 CET 2010


On date Friday 2010-03-12 01:30:12 +0100, Michael Niedermayer encoded:
> On Fri, Mar 12, 2010 at 01:09:59AM +0100, Stefano Sabatini wrote:
> [...]
> >  static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
> > @@ -36,9 +38,12 @@
> >      SliceContext *slice = ctx->priv;
> >  
> >      slice->h = 16;
> > -    if (args)
> > -        sscanf(args, "%d", &slice->h);
> > -
> > +    if (args) {
> 
> > +        if (!strcmp(args, "rand"))
> > +            slice->use_random_h = 1;
> > +        else
> 
> {}
> -> patcheck is your friend <-
> 
> 
> shoud be ok otherise if tested

Applied.
-- 
FFmpeg = Fast Fundamentalist Marvellous Portentous Esoteric Geek



More information about the ffmpeg-devel mailing list