diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-08-23 10:27:49 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-01 10:37:04 +0200 |
commit | bea5670a4f5e47a39edf18abbfafa2760e1d7132 (patch) | |
tree | 4e06aee276a618cc6867779c5adeffb0b507b752 | |
parent | 1440037411507f6737df97b7262649874cee8ac2 (diff) | |
download | ffmpeg-bea5670a4f5e47a39edf18abbfafa2760e1d7132.tar.gz |
AVOptions: drop av_ prefix from static av_get_number().
-rw-r--r-- | libavutil/opt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 9c601a2cbb..707977a7a9 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -261,7 +261,7 @@ const char *av_get_string(void *obj, const char *name, const AVOption **o_out, c return buf; } -static int av_get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum) +static int get_number(void *obj, const char *name, const AVOption **o_out, double *num, int *den, int64_t *intnum) { const AVOption *o = av_opt_find(obj, name, NULL, 0, 0); void *dst; @@ -293,7 +293,7 @@ double av_get_double(void *obj, const char *name, const AVOption **o_out) double num=1; int den=1; - if (av_get_number(obj, name, o_out, &num, &den, &intnum) < 0) + if (get_number(obj, name, o_out, &num, &den, &intnum) < 0) return NAN; return num*intnum/den; } @@ -304,7 +304,7 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out) double num=1; int den=1; - if (av_get_number(obj, name, o_out, &num, &den, &intnum) < 0) + if (get_number(obj, name, o_out, &num, &den, &intnum) < 0) return (AVRational){0, 0}; if (num == 1.0 && (int)intnum == intnum) return (AVRational){intnum, den}; @@ -318,7 +318,7 @@ int64_t av_get_int(void *obj, const char *name, const AVOption **o_out) double num=1; int den=1; - if (av_get_number(obj, name, o_out, &num, &den, &intnum) < 0) + if (get_number(obj, name, o_out, &num, &den, &intnum) < 0) return -1; return num*intnum/den; } |