This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 2b1cf52dbee9bdcf2b8b0f7ec5a37136072984dd
Author:     Marton Balint <[email protected]>
AuthorDate: Sun Jun 14 01:16:18 2026 +0200
Commit:     Marton Balint <[email protected]>
CommitDate: Wed Jun 24 23:31:53 2026 +0200

    avformat/asf: add helper functions to convert between filetime and avtime
    
    Signed-off-by: Marton Balint <[email protected]>
---
 libavformat/asf.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libavformat/asf.h b/libavformat/asf.h
index b77dabe1ff..d1f6421371 100644
--- a/libavformat/asf.h
+++ b/libavformat/asf.h
@@ -113,6 +113,17 @@ extern const AVMetadataConv ff_asf_metadata_conv[];
 int ff_asf_handle_byte_array(AVFormatContext *s, const char *name,
                              int val_len);
 
+/* convert from av time to windows filetime */
+static inline int64_t ff_asf_avtime_to_filetime(int64_t avtime)
+{
+    return avtime * 10 + 116444736000000000;
+}
+
+/* convert from windows filetime to av time */
+static inline int64_t ff_asf_filetime_to_avtime(int64_t filetime)
+{
+    return filetime / 10 - 11644473600000000;
+}
 
 #define ASF_PACKET_FLAG_ERROR_CORRECTION_PRESENT 0x80 //1000 0000
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to