diff options
author | Arwed v. Merkatz <v.merkatz@gmx.net> | 2004-09-01 12:10:21 +0000 |
---|---|---|
committer | Arwed v. Merkatz <v.merkatz@gmx.net> | 2004-09-01 12:10:21 +0000 |
commit | e83fb2a3c26a1a704a59e3eb03465782535e62e0 (patch) | |
tree | 2c553a98df11deb0083bc39fc03a84cb874f2978 /gst/matroska/ebml-write.c | |
parent | 5488fa27bc7f727adb4edd2e14da4012119e52d7 (diff) |
Write track and segment UIDs, write muxing date, write TRACKDEFAULTDURATION for TTA audio, write BLOCKDURATION if known.
Original commit message from CVS:
Write track and segment UIDs, write muxing date, write TRACKDEFAULTDURATION for TTA audio, write BLOCKDURATION if known.
Diffstat (limited to 'gst/matroska/ebml-write.c')
-rw-r--r-- | gst/matroska/ebml-write.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/matroska/ebml-write.c b/gst/matroska/ebml-write.c index 30a9c420..1ca54ca3 100644 --- a/gst/matroska/ebml-write.c +++ b/gst/matroska/ebml-write.c @@ -430,10 +430,11 @@ gst_ebml_write_utf8 (GstEbmlWrite * ebml, guint32 id, const gchar * str) gst_ebml_write_ascii (ebml, id, str); } +/* date should be in seconds since the unix epoch */ void gst_ebml_write_date (GstEbmlWrite * ebml, guint32 id, gint64 date) { - gst_ebml_write_sint (ebml, id, date); + gst_ebml_write_sint (ebml, id, (date - GST_EBML_DATE_OFFSET) * GST_SECOND); } /* |