diff options
author | James Almer <jamrial@gmail.com> | 2019-10-04 11:58:29 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-01-15 23:34:20 -0300 |
commit | 4e4ac2034048271d280235860240c795dabeed99 (patch) | |
tree | a7e8080cb15af0af3c3f408a7c4ab6d9f810b7ca /libavformat/utils.c | |
parent | 56c8856966ecc7a016aa0edb5472a902a7fbd49a (diff) |
avformat/utils: make ff_ntp_time() accept a timestamp as input argument
Will be needed by the next patch.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index f3d71642c3..674757a63f 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -4684,9 +4684,9 @@ void av_program_add_stream_index(AVFormatContext *ac, int progid, unsigned idx) } } -uint64_t ff_ntp_time(void) +uint64_t ff_ntp_time(int64_t timestamp) { - return (av_gettime() / 1000) * 1000 + NTP_OFFSET_US; + return (timestamp / 1000) * 1000 + NTP_OFFSET_US; } uint64_t ff_get_formatted_ntp_time(uint64_t ntp_time_us) |