From 3235241061d6a7d79b261b13596620e5dcf015bf Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Thu, 4 Feb 2016 02:09:48 +0100 Subject: avutil/parseutils: use microsecond precision when parsing "now" in av_parse_time() Use av_gettime() instead of time(0) for querying current time. Signed-off-by: Marton Balint --- tests/ref/fate/parseutils | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/ref/fate/parseutils b/tests/ref/fate/parseutils index 1482452857..176140ce8c 100644 --- a/tests/ref/fate/parseutils +++ b/tests/ref/fate/parseutils @@ -70,8 +70,8 @@ fmt:'%Y-%m-%d %H:%M:%S' spec:'2012-12-21 20:12:21' -> 2012-12-21 20:12:21 fmt:' %Y - %m - %d %H : %M : %S' spec:' 2012 - 12 - 21 20 : 12 : 21' -> 2012-12-21 20:12:21 Testing av_parse_time() -(now is 2012-03-17 09:14:13 +0100, local time is UTC+1) -now -> 1331972053.000000 = 2012-03-17T08:14:13Z +(now is 2012-03-17 09:14:13.2 +0100, local time is UTC+1) +now -> 1331972053.200000 = 2012-03-17T08:14:13Z 12:35:46 -> 1331984146.000000 = 2012-03-17T11:35:46Z 2000-12-20 0:02:47.5z -> 977270567.500000 = 2000-12-20T00:02:47Z 2000-12-20T010247.6 -> 977270567.600000 = 2000-12-20T00:02:47Z -- cgit v1.2.3