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:
parent
d209b3de10
commit
f16a6fa764
@ -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>
|
2004-12-18 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
* gst/matroska/matroska-demux.c:
|
* gst/matroska/matroska-demux.c:
|
||||||
|
@ -1732,12 +1732,10 @@ gst_matroska_ebmlnum_sint (guint8 * data, guint size, gint64 * num)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* make signed */
|
/* make signed */
|
||||||
if (unum == G_MAXUINT64 && res > 1)
|
if (unum == G_MAXUINT64)
|
||||||
*num = G_MAXINT64;
|
*num = G_MAXINT64;
|
||||||
else if (unum != 0)
|
|
||||||
*num = unum - ((1 << ((7 * res) - 1)) - 1);
|
|
||||||
else
|
else
|
||||||
*num = 0;
|
*num = unum - ((1 << ((7 * res) - 1)) - 1);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user