mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move the NTP offset definitions to internal.h
Originally committed as revision 22542 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a5b3d34b5b
commit
2dad0dcec6
@ -37,6 +37,9 @@ void ff_interleave_add_packet(AVFormatContext *s, AVPacket *pkt,
|
||||
|
||||
void av_read_frame_flush(AVFormatContext *s);
|
||||
|
||||
#define NTP_OFFSET 2208988800ULL
|
||||
#define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
|
||||
|
||||
/** Gets the current time since NTP epoch in microseconds. */
|
||||
uint64_t ff_ntp_time(void);
|
||||
|
||||
|
@ -3108,9 +3108,6 @@ int64_t av_gettime(void)
|
||||
return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
|
||||
}
|
||||
|
||||
#define NTP_OFFSET 2208988800ULL
|
||||
#define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
|
||||
|
||||
uint64_t ff_ntp_time(void)
|
||||
{
|
||||
return (av_gettime() / 1000) * 1000 + NTP_OFFSET_US;
|
||||
|
Loading…
Reference in New Issue
Block a user