diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-02-03 23:25:35 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-02-03 23:25:35 +0000 |
commit | 20e4beaef73bb249c429a6af491c863fdff1df06 (patch) | |
tree | f5f73d4b88cc6fbc002212d4919fd4516a8f9a2e | |
parent | 652a5bf69dfcc651c0f1e0d1ce30afc2d2253075 (diff) | |
download | ffmpeg-20e4beaef73bb249c429a6af491c863fdff1df06.tar.gz |
const
Originally committed as revision 11840 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/eval.c | 8 | ||||
-rw-r--r-- | libavcodec/eval.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/eval.c b/libavcodec/eval.c index da4876375d..b75263b804 100644 --- a/libavcodec/eval.c +++ b/libavcodec/eval.c @@ -55,7 +55,7 @@ typedef struct Parser{ double (**func2)(void *, double a, double b); // NULL terminated char **func2_name; // NULL terminated void *opaque; - char **error; + const char **error; #define VARS 10 double var[VARS]; } Parser; @@ -379,7 +379,7 @@ static int verify_expr(AVEvalExpr * e) { AVEvalExpr * ff_parse(char *s, const char **const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), char **func2_name, - char **error){ + const char **error){ Parser p; AVEvalExpr * e; char w[strlen(s) + 1], * wp = w; @@ -416,7 +416,7 @@ double ff_parse_eval(AVEvalExpr * e, double *const_value, void *opaque) { double ff_eval2(char *s, double *const_value, const char **const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), char **func2_name, - void *opaque, char **error){ + void *opaque, const char **error){ AVEvalExpr * e = ff_parse(s, const_name, func1, func1_name, func2, func2_name, error); double d; if (!e) return NAN; @@ -430,7 +430,7 @@ attribute_deprecated double ff_eval(char *s, double *const_value, const char **c double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), char **func2_name, void *opaque){ - char *error=NULL; + const char *error=NULL; double ret; ret = ff_eval2(s, const_value, const_name, func1, func1_name, func2, func2_name, opaque, &error); if (error) diff --git a/libavcodec/eval.h b/libavcodec/eval.h index 08c2c70743..143c8765c7 100644 --- a/libavcodec/eval.h +++ b/libavcodec/eval.h @@ -55,7 +55,7 @@ double ff_eval(char *s, double *const_value, const char **const_name, double ff_eval2(char *s, double *const_value, const char **const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), char **func2_name, - void *opaque, char **error); + void *opaque, const char **error); typedef struct ff_expr_s AVEvalExpr; @@ -74,7 +74,7 @@ typedef struct ff_expr_s AVEvalExpr; AVEvalExpr * ff_parse(char *s, const char **const_name, double (**func1)(void *, double), const char **func1_name, double (**func2)(void *, double, double), char **func2_name, - char **error); + const char **error); /** * Evaluates a previously parsed expression. * @param const_value a zero terminated array of values for the identifers from ff_parse const_name |