Originally committed as revision 19249 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unified · Split
| @@ -86,12 +86,12 @@ static const int8_t si_prefixes['z' - 'E' + 1]={ · 85 unmodified lines | |||
| 86 | * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This | 86 | * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This |
| 87 | * function assumes that the unit of numbers is bits not bytes. | 87 | * function assumes that the unit of numbers is bits not bytes. |
| 88 | */ | 88 | */ |
| 89 | static double av_strtod(const char *name, char **tail) { | 89 | static double av_strtod(const char *numstr, char **tail) { |
| 90 | double d; | 90 | double d; |
| 91 | char *next; | 91 | char *next; |
| 92 | d = strtod(name, &next); | 92 | d = strtod(numstr, &next); |
| 93 | /* if parsing succeeded, check for and interpret postfixes */ | 93 | /* if parsing succeeded, check for and interpret postfixes */ |
| 94 | if (next!=name) { | 94 | if (next!=numstr) { |
| 95 | 95 | ||
| 96 | if(*next >= 'E' && *next <= 'z'){ | 96 | if(*next >= 'E' && *next <= 'z'){ |
| 97 | int e= si_prefixes[*next - 'E']; | 97 | int e= si_prefixes[*next - 'E']; |