summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorSteve Lhomme <steve.lhomme@free.fr>2004-07-24 21:16:15 +0000
committerSteve Lhomme <steve.lhomme@free.fr>2004-07-24 21:16:15 +0000
commit6976ceb2358292e82a6cfae7450e800ccef8f8a9 (patch)
tree2b5f65dcfd5e378d296005b160c9dca74b9c3402 /gst
parent3f95ab38b9fe89abc4ccaec556b9d0a66fe18a0d (diff)
Fix some 64 bits constants to be glib friendly
Original commit message from CVS: Fix some 64 bits constants to be glib friendly
Diffstat (limited to 'gst')
-rw-r--r--gst/matroska/ebml-write.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gst/matroska/ebml-write.c b/gst/matroska/ebml-write.c
index 302d4898..e59c5a49 100644
--- a/gst/matroska/ebml-write.c
+++ b/gst/matroska/ebml-write.c
@@ -229,7 +229,7 @@ gst_ebml_write_element_size (GstBuffer * buf, guint64 size)
mask = 0x01;
bytes = 8;
/* Now here's a real FIXME: we cannot read those yet! */
- size = 0x00ffffffffffffffLLU;
+ size = G_GINT64_CONSTANT (0x00ffffffffffffff);
}
/* write out, BE, with length size marker */
@@ -321,7 +321,7 @@ gst_ebml_write_get_uint_size (guint64 num)
guint size = 1;
/* get size */
- while (num >= (1LLU << (size * 8)) && size < 8) {
+ while (num >= (G_GINT64_CONSTANT (1) << (size * 8)) && size < 8) {
size++;
}
@@ -464,9 +464,10 @@ gst_ebml_write_master_finish (GstEbmlWrite * ebml, guint64 startpos)
gst_ebml_write_seek (ebml, startpos);
buf = gst_ebml_write_element_new (ebml, 0);
- startpos = GUINT64_TO_BE ((1LLU << 56) | (pos - startpos - 8));
- memcpy (GST_BUFFER_DATA (buf) + GST_BUFFER_SIZE (buf),
- (guint8 *) & startpos, 8);
+ startpos =
+ GUINT64_TO_BE ((G_GINT64_CONSTANT (1) << 56) | (pos - startpos - 8));
+ memcpy (GST_BUFFER_DATA (buf) + GST_BUFFER_SIZE (buf), (guint8 *) & startpos,
+ 8);
GST_BUFFER_SIZE (buf) += 8;
gst_ebml_write_element_push (ebml, buf);
gst_ebml_write_seek (ebml, pos);