Revision 2dad0dce

View differences:

libavformat/internal.h
37 37

  
38 38
void av_read_frame_flush(AVFormatContext *s);
39 39

  
40
#define NTP_OFFSET 2208988800ULL
41
#define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
42

  
40 43
/** Gets the current time since NTP epoch in microseconds. */
41 44
uint64_t ff_ntp_time(void);
42 45

  
libavformat/utils.c
3108 3108
    return (int64_t)tv.tv_sec * 1000000 + tv.tv_usec;
3109 3109
}
3110 3110

  
3111
#define NTP_OFFSET 2208988800ULL
3112
#define NTP_OFFSET_US (NTP_OFFSET * 1000000ULL)
3113

  
3114 3111
uint64_t ff_ntp_time(void)
3115 3112
{
3116 3113
  return (av_gettime() / 1000) * 1000 + NTP_OFFSET_US;

Also available in: Unified diff