[FFmpeg-devel] [PATCH] Extend slicify filter to make it accept a parametric value
Michael Niedermayer
michaelni
Fri Mar 12 01:30:12 CET 2010
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100312/28d154cf/attachment.pgp>
More information about the ffmpeg-devel
mailing list