why av_gettime_relative use av_gettime add 42 days on os don't have monotoinc clock?

For the developers that use FFmpeg in their software.
Post Reply
wly65535
Posts: 1
Joined: Thu Mar 07, 2019 9:24 am

why av_gettime_relative use av_gettime add 42 days on os don't have monotoinc clock?

Post by wly65535 » Thu Mar 07, 2019 9:34 am

Hello everyone.
av_gettime_relative try to get the monotonic clock, but if the os don't have a monotonic clock, It returns av_gettime() + 42 days.
Why should add 42 days?

I think it's not necessary if try to calculate the time escaped.

Post Reply