[FFmpeg-cvslog] r19252 - in trunk/libavcodec: eval.c eval.h

stefano subversion
Tue Jun 23 00:22:40 CEST 2009


Author: stefano
Date: Tue Jun 23 00:22:40 2009
New Revision: 19252

Log:
Export av_strtod() to eval.h.

Modified:
   trunk/libavcodec/eval.c
   trunk/libavcodec/eval.h

Modified: trunk/libavcodec/eval.c
==============================================================================
--- trunk/libavcodec/eval.c	Mon Jun 22 18:54:17 2009	(r19251)
+++ trunk/libavcodec/eval.c	Tue Jun 23 00:22:40 2009	(r19252)
@@ -82,11 +82,7 @@ static const int8_t si_prefixes['z' - 'E
     ['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);

Modified: trunk/libavcodec/eval.h
==============================================================================
--- trunk/libavcodec/eval.h	Mon Jun 22 18:54:17 2009	(r19251)
+++ trunk/libavcodec/eval.h	Tue Jun 23 00:22:40 2009	(r19252)
@@ -74,4 +74,10 @@ AVEvalExpr * ff_parse(const char *s, con
 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 */



More information about the ffmpeg-cvslog mailing list