[FFmpeg-soc] expand filter (alternative to pad syntax)

Víctor Paesa victorpaesa at googlemail.com
Thu May 15 11:30:40 CEST 2008


Hi,

On Thu, May 15, 2008 at 4:30 AM, Ryo Hirafuji <psi at science.mi.to> wrote:
> Here is a newer source.
>
>> i suggest you use a single sscanf()
> I would use "sscanf" for args,but it doen't work well...
>
> sscanf(arg,"%d:%d:%d:%d:%s:%s:%d",&a,&b,&c,&d,e,f,&g);
>
> and input:
> 640:480:10:10:false:16/9:10
>
> Results are:
> a=640
> b=480
> c=10
> d=10
> e="false:16/9:10"
> f,g -> not inputed.
>
> so I used strok_r for args.

Try sscanf(arg,"%d:%d:%d:%d:%255[^:]:%255[^:]:%d",&a,&b,&c,&d,e,f,&g);

or similar.

And maybe you could use the / as field separator and input num, den
instead of aspect.

Also, could you please include some example of usage (embedded in code
comments).

Regards,
Víctor


More information about the FFmpeg-soc mailing list