Commit 5a9d6993 authored by Nicolas George's avatar Nicolas George

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.
parent b27c7d70
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment