mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 23:28:16 +00:00
matroska: do not lose the top bits when writing a > 32 bit value
Coverity 1139806
This commit is contained in:
parent
10663decd9
commit
5b9fa4e63a
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 = 0x80 << (size - 1);
|
||||
unum = ((guint64) 0x80) << (size - 1);
|
||||
unum += num;
|
||||
unum |= 0x80 << (size - 1);
|
||||
unum |= ((guint64) 0x80) << (size - 1);
|
||||
}
|
||||
|
||||
/* write */
|
||||
|
|
Loading…
Reference in a new issue