Commit 0e1a1dee authored by benoit's avatar benoit

Export and document in cmdutils.h the function parse_number_or_die().

Patch by Stefano Sabatini: stefano sabatini-lala poste it


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12210 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6ece9df4
...@@ -24,6 +24,21 @@ ...@@ -24,6 +24,21 @@
#include <inttypes.h> #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 (OPT_INT64 or OPT_FLOAT) as which the
* string should be parsed
* @param min the minimum valid value accepted
* @param max the maximum valid value accepted
*/
double parse_number_or_die(const char *context, const char *numstr, int type, double min, double max);
typedef struct { typedef struct {
const char *name; const char *name;
int flags; int flags;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment