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.
This commit is contained in:
Ronald S. Bultje 2004-12-18 22:53:29 +00:00
parent d209b3de10
commit f16a6fa764
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/matroska/matroska-demux.c: (gst_matroska_ebmlnum_sint):
That was very stupid.
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/matroska/matroska-demux.c:

View file

@ -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;
}