diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-04-09 14:00:32 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-04-09 14:00:32 +0000 |
commit | f66a4fbe55c65cdcee436403dfed3831c46ba4a4 (patch) | |
tree | fc247ac07f5a20b1e44af3aeac9422d03d5f145e /gst/matroska/ebml-read.c | |
parent | bcbc2b2b98b134efcd2644aad5b0379cde54803e (diff) |
gst/matroska/ebml-read.c: Even better would be if we actually did the right thing here (also, G_GUINT64_CONSTANT only...
Original commit message from CVS:
* gst/matroska/ebml-read.c: (gst_ebml_read_sint):
Even better would be if we actually did the right thing
here (also, G_GUINT64_CONSTANT only exists since GLib-2.10).
Diffstat (limited to 'gst/matroska/ebml-read.c')
-rw-r--r-- | gst/matroska/ebml-read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c index 10c35123..fd4a4899 100644 --- a/gst/matroska/ebml-read.c +++ b/gst/matroska/ebml-read.c @@ -507,7 +507,7 @@ gst_ebml_read_sint (GstEbmlRead * ebml, guint32 * id, gint64 * num) /* make signed */ if (negative) { - *num = *num - (G_GUINT64_CONSTANT (1) << ((8 * size) - 1)); + *num = 0 - *num; } gst_buffer_unref (buf); |