aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-06-19 17:57:51 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-06-20 01:58:18 +0200
commit940a55ccf4898c641d0b3b7138d679943611e1d6 (patch)
tree1456602c30fc6e089e0abf7c5a5882d1b48a5afc
parenta7e4342fc1a0e962b829a9a194d034fa38590951 (diff)
downloadffmpeg-940a55ccf4898c641d0b3b7138d679943611e1d6.tar.gz
eval: Fix 32bit unsigned parsing
Fixes ticket264 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavutil/eval.c2
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 */