diff --git a/libavutil/time.c b/libavutil/time.c index e833cd0d17..42497dad3c 100644 --- a/libavutil/time.c +++ b/libavutil/time.c @@ -41,7 +41,7 @@ int64_t av_gettime(void) #if HAVE_CLOCK_GETTIME struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - return (int64_t)ts.tv_sec * 100000 + ts.tv_nsec / 1000; + return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000; #elif HAVE_GETTIMEOFDAY struct timeval tv; gettimeofday(&tv, NULL);