[FFmpeg-devel] [PATCH] Dcoument parse_number_or_die function

Michael Niedermayer michaelni
Mon Feb 25 03:44:38 CET 2008


On Mon, Feb 25, 2008 at 12:19:30AM +0100, Stefano Sabatini wrote:
> Hi,
> as in $subject.
[...]
> Index: cmdutils.h
> ===================================================================
> --- cmdutils.h	(revision 12192)
> +++ cmdutils.h	(working copy)
> @@ -24,6 +24,21 @@
>  
>  #include <inttypes.h>
>  
> +/**
> + * parses a string and returns its corresponding value as a double or
> + * exits from the application if the string cannot be correctly parsed
> + * or the corresponding value is invalid
> + *
> + * @param context the context of the value to be set (e.g. the
> + * corresponding commandline option name)
> + * @param numstr the string to be parsed

> + * @param type the type of the value to be expected from \p numstr

The type (OPT_INT, blah) as which the string should be parsed.

the rest looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- 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/20080225/aba054cf/attachment.pgp>



More information about the ffmpeg-devel mailing list