diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-06-19 19:57:51 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-06-20 03:58:18 +0400 |
commit | 940a55ccf4898c641d0b3b7138d679943611e1d6 (patch) | |
tree | 1456602c30fc6e089e0abf7c5a5882d1b48a5afc /libavutil/eval.c | |
parent | a7e4342fc1a0e962b829a9a194d034fa38590951 (diff) |
eval: Fix 32bit unsigned parsing
Fixes ticket264
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/eval.c')
-rw-r--r-- | libavutil/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c index 36cc76d3bf..fa2999b84c 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -76,7 +76,7 @@ double av_strtod(const char *numstr, char **tail) double d; char *next; if(numstr[0]=='0' && (numstr[1]|0x20)=='x') { - d = strtol(numstr, &next, 16); + d = strtoul(numstr, &next, 16); } else d = strtod(numstr, &next); /* if parsing succeeded, check for and interpret postfixes */ |