# HG changeset patch # User stefano # Date 1245709360 0 # Node ID e934c5f8f4a9abe238e4d1db1380935d630eb1cd # Parent d54ba41c7e4877fff7e5a4f17afbad24000fd34f Export av_strtod() to eval.h. diff -r d54ba41c7e48 -r e934c5f8f4a9 eval.c --- a/eval.c Sun Jun 21 21:37:05 2009 +0000 +++ b/eval.c Mon Jun 22 22:22:40 2009 +0000 @@ -82,11 +82,7 @@ ['Y'-'E']= 24, }; -/** strtod() function extended with 'k', 'M', 'G', 'ki', 'Mi', 'Gi' and 'B' - * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This - * function assumes that the unit of numbers is bits not bytes. - */ -static double av_strtod(const char *numstr, char **tail) { +double av_strtod(const char *numstr, char **tail) { double d; char *next; d = strtod(numstr, &next); diff -r d54ba41c7e48 -r e934c5f8f4a9 eval.h --- a/eval.h Sun Jun 21 21:37:05 2009 +0000 +++ b/eval.h Mon Jun 22 22:22:40 2009 +0000 @@ -74,4 +74,10 @@ double ff_parse_eval(AVEvalExpr * e, const double *const_value, void *opaque); void ff_eval_free(AVEvalExpr * e); +/** strtod() function extended with 'k', 'M', 'G', 'ki', 'Mi', 'Gi' and 'B' + * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This + * function assumes that the unit of numbers is bits not bytes. + */ +double av_strtod(const char *numstr, char **tail); + #endif /* AVCODEC_EVAL_H */