On Thu, 23 Oct 2014, Anton Khirnov wrote:
Quoting Martin Storsjö (2014-10-22 13:03:10)
On platform where no monotonic clock is available, the difference
between the two av_gettime functions is not clear, and one could
mistakenly use the relative clock where an absolute one is
required. Therefore add an offset, to make it evident that the
time returned from av_gettime_relative never is actual current
real time, even though it is based on av_gettime.
---
Should the doxy for the function be changed? Previously it says
If a monotonic clock is not available on the targeted platform, the
implementation falls back on using av_gettime().
Technically it still falls back on av_gettime(), but it obviously
won't return similar values.
Perhaps something like "The returned values may not be monotonic on
platforms where a monotonic clock is not available"
without mentioning the details of the fallback at all?
That sounds good, thanks.
Also, should this not be squashed into the first patch?
Sure, that probably makes more sense.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel