mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-26 17:18:15 +00:00
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).
This commit is contained in:
parent
bcbc2b2b98
commit
f66a4fbe55
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-04-09 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* 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 <tim at centricular dot net>
|
||||
|
||||
* gst/matroska/ebml-read.c: (gst_ebml_read_sint):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue