This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 83c6534d5af28cd57aa113524d7dc6b2d6388daa Author: Marton Balint <[email protected]> AuthorDate: Sun Jun 14 01:21:22 2026 +0200 Commit: Marton Balint <[email protected]> CommitDate: Wed Jun 24 23:31:53 2026 +0200 avformat/asfenc: use common function for timestamp conversion Signed-off-by: Marton Balint <[email protected]> --- libavformat/asfenc.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 75285b065c..59638e7b22 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -294,16 +294,6 @@ static void put_chunk(AVFormatContext *s, int type, asf->seqno++; } -/* convert from av time to windows time */ -static int64_t unix_to_file_time(int64_t ti) -{ - int64_t t; - - t = ti * INT64_C(10); - t += INT64_C(116444736000000000); - return t; -} - static int32_t get_send_time(ASFContext *asf, int64_t pres_time, uint64_t *offset) { int32_t send_time = 0; @@ -442,7 +432,7 @@ static int asf_write_header1(AVFormatContext *s, int64_t file_size, hpos = put_header(pb, &ff_asf_file_header); ff_put_guid(pb, &ff_asf_my_guid); avio_wl64(pb, file_size); - avio_wl64(pb, unix_to_file_time(asf->creation_time)); + avio_wl64(pb, ff_asf_avtime_to_filetime(asf->creation_time)); avio_wl64(pb, asf->nb_packets); /* number of packets */ avio_wl64(pb, duration); /* end time stamp (in 100ns units) */ avio_wl64(pb, asf->duration); /* duration (in 100ns units) */ _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
