Browse Source

parseutils: ignore digits below the microsecond.

Accept 1.1234567 as simply 1.123456 instead of rejecting it.
The rounding is towards 0, which is acceptable and much simpler.
tags/n1.0
Nicolas George 13 years ago
parent
commit
5a9d6993cb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavutil/parseutils.c

+ 2
- 0
libavutil/parseutils.c View File

@@ -610,6 +610,8 @@ int av_parse_time(int64_t *timeval, const char *timestr, int duration)
break;
microseconds += n * (*q - '0');
}
while (isdigit(*q))
q++;
}

if (duration) {


Loading…
Cancel
Save