[SCM] libav/experimental: Export av_strtod() to eval.h.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:48:07 UTC 2013


The following commit has been merged in the experimental branch:
commit 1c2744d139e84eb205909c378b271995753c8e1a
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Mon Jun 22 22:22:40 2009 +0000

    Export av_strtod() to eval.h.
    
    Originally committed as revision 19252 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index 8d79a33..d757749 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 82d4315..6fe70bc 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 */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list