1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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.
This commit is contained in:
Nicolas George 2012-07-10 19:03:12 +02:00
parent b27c7d70d8
commit 5a9d6993cb

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) {