lavu: add av_usleep() function
authorMans Rullgard <mans@mansr.com>
Thu, 21 Jun 2012 16:00:25 +0000 (17:00 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 22 Jun 2012 16:15:18 +0000 (17:15 +0100)
commitd3d3a32c9d389cc0d6a91b389988a225ae01c948
tree5115c574ba6da03bca2679cbdc073437de5dfc24
parentf6b4624fcf9a8f4966b495b9c769ff0796839d57
lavu: add av_usleep() function

This function implements a delay using the first available
of the following functions:

- nanosleep()
- usleep()
- Sleep() (Windows)

The conditional #includes in time.c are simplified by including
unistd.h and windows.h whenever they are available rather than
having these lines triggered by specific functions.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure
doc/APIchanges
libavutil/avutil.h
libavutil/time.c
libavutil/time.h