From f16a6fa764effb536ab28766fb686474577cc045 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Sat, 18 Dec 2004 22:53:29 +0000 Subject: gst/matroska/matroska-demux.c: That was very stupid. Original commit message from CVS: * gst/matroska/matroska-demux.c: (gst_matroska_ebmlnum_sint): That was very stupid. --- gst/matroska/matroska-demux.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'gst') diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index e4353c4a..23d099d9 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -1732,12 +1732,10 @@ gst_matroska_ebmlnum_sint (guint8 * data, guint size, gint64 * num) return -1; /* make signed */ - if (unum == G_MAXUINT64 && res > 1) + if (unum == G_MAXUINT64) *num = G_MAXINT64; - else if (unum != 0) - *num = unum - ((1 << ((7 * res) - 1)) - 1); else - *num = 0; + *num = unum - ((1 << ((7 * res) - 1)) - 1); return res; } -- cgit