From f66a4fbe55c65cdcee436403dfed3831c46ba4a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sun, 9 Apr 2006 14:00:32 +0000 Subject: [PATCH] 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). --- ChangeLog | 6 ++++++ gst/matroska/ebml-read.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 76a98ef5d0..5e068b4f11 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-04-09 Tim-Philipp Müller + + * 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). + 2006-04-08 Tim-Philipp Müller * gst/matroska/ebml-read.c: (gst_ebml_read_sint): diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c index 10c3512353..fd4a48993e 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);