[FFmpeg-cvslog] eval: Fix 32bit unsigned parsing

Michael Niedermayer git at videolan.org
Mon Jun 20 02:07:41 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 19 17:57:51 2011 +0200| [940a55ccf4898c641d0b3b7138d679943611e1d6] | committer: Michael Niedermayer

eval: Fix 32bit unsigned parsing

Fixes ticket264

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=940a55ccf4898c641d0b3b7138d679943611e1d6
---

 libavutil/eval.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavutil/eval.c b/libavutil/eval.c
index 36cc76d..fa2999b 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 */



More information about the ffmpeg-cvslog mailing list