changeset 9880:e934c5f8f4a9 libavcodec

Export av_strtod() to eval.h.
author stefano
date Mon, 22 Jun 2009 22:22:40 +0000
parents d54ba41c7e48
children c69559e9f6c3
files eval.c eval.h
diffstat 2 files changed, 7 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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 */