mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 06:52:41 +00:00
matroska: blindly fix writing variable length negative values
Spotted while fixing something else in the area. Nothing calls this with a negative value.
This commit is contained in:
parent
5b9fa4e63a
commit
5c22bcf6e9
1 changed files with 2 additions and 2 deletions
|
@ -619,9 +619,9 @@ gst_ebml_write_sint (GstEbmlWrite * ebml, guint32 id, gint64 num)
|
|||
if (num >= 0) {
|
||||
unum = num;
|
||||
} else {
|
||||
unum = ((guint64) 0x80) << (size - 1);
|
||||
unum = ((guint64) 0x80) << ((size - 1) * 8);
|
||||
unum += num;
|
||||
unum |= ((guint64) 0x80) << (size - 1);
|
||||
unum |= ((guint64) 0x80) << ((size - 1) * 8);
|
||||
}
|
||||
|
||||
/* write */
|
||||
|
|
Loading…
Reference in a new issue