aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-06-22 22:22:40 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-06-22 22:22:40 +0000
commit1c2744d139e84eb205909c378b271995753c8e1a (patch)
treefe4e199360fcabe63ad7cb9eb9193a3885b0d480
parentb394438e8a4d7e43a90a85ec3bebd889255d759a (diff)
downloadffmpeg-1c2744d139e84eb205909c378b271995753c8e1a.tar.gz
Export av_strtod() to eval.h.
Originally committed as revision 19252 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/eval.c6
-rw-r--r--libavcodec/eval.h6
2 files changed, 7 insertions, 5 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index 8d79a3341a..d757749e88 100644
--- a/libavcodec/eval.c
+++ b/libavcodec/eval.c
@@ -82,11 +82,7 @@ static const int8_t si_prefixes['z' - 'E' + 1]={
['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 --git a/libavcodec/eval.h b/libavcodec/eval.h
index 82d4315bac..6fe70bca5c 100644
--- a/libavcodec/eval.h
+++ b/libavcodec/eval.h
@@ -74,4 +74,10 @@ AVEvalExpr * ff_parse(const char *s, const char * const *const_name,
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 */