Revision e877eaac libavcodec/eval.c

View differences:

libavcodec/eval.c
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'];

Also available in: Unified diff