mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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
2 changed files with 7 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue