From 1bd0bdcdc236099d5c0d179696951f35f5310fa5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 22 Oct 2014 12:14:37 +0300 Subject: lavu: Add av_gettime_relative MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since av_gettime() is used in a number of places where actual real time clock is required, the monotonic clock introduced in ebef9f5a5 would have consequences that are hard to handle. Instead split it into a separate function that can be used in the cases where only relative time is desired. 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. Based on a patch by Olivier Langlois. Signed-off-by: Martin Storsjö --- doc/APIchanges | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc') diff --git a/doc/APIchanges b/doc/APIchanges index a8b7091..ad444e1 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -13,6 +13,9 @@ libavutil: 2014-08-09 API changes, most recent first: +2014-10-xx - xxxxxxx - lavu 54.5.0 - time.h + Add av_gettime_relative(). + 2014-10-xx - xxxxxxx - lavc 56.5.0 - avcodec.h Replace AVCodecContext.time_base used for decoding with AVCodecContext.framerate. -- cgit v1.1