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 | 86 | * postfixes. This allows using f.e. kB, MiB, G and B as a postfix. This |
| 87 | 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 | 90 | double d; |
| 91 | 91 | char *next; |
| 92 | − d = strtod(name, &next); | |
| 92 | + d = strtod(numstr, &next); | |
| 93 | 93 | /* if parsing succeeded, check for and interpret postfixes */ |
| 94 | − if (next!=name) { | |
| 94 | + if (next!=numstr) { | |
| 95 | 95 | |
| 96 | 96 | if(*next >= 'E' && *next <= 'z'){ |
| 97 | 97 | int e= si_prefixes[*next - 'E']; |