mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 02:47:31 +09:00
[ffvpx] Update ffvp9/ffvp8 to 3.4.2-release
Structure of code was slightly modified so that it should be no longer necessary to re-generate the config_*.h files, greatly simplifying the resync process in the future.
This commit is contained in:
parent
705e180aea
commit
d1361d3c21
183 changed files with 17773 additions and 28489 deletions
|
|
@ -56,17 +56,25 @@ int64_t av_gettime(void)
|
|||
int64_t av_gettime_relative(void)
|
||||
{
|
||||
#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
|
||||
#else
|
||||
return av_gettime() + 42 * 60 * 60 * INT64_C(1000000);
|
||||
#ifdef __APPLE__
|
||||
if (clock_gettime)
|
||||
#endif
|
||||
{
|
||||
struct timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return (int64_t)ts.tv_sec * 1000000 + ts.tv_nsec / 1000;
|
||||
}
|
||||
#endif
|
||||
return av_gettime() + 42 * 60 * 60 * INT64_C(1000000);
|
||||
}
|
||||
|
||||
int av_gettime_relative_is_monotonic(void)
|
||||
{
|
||||
#if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC)
|
||||
#ifdef __APPLE__
|
||||
if (!clock_gettime)
|
||||
return 0;
|
||||
#endif
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue