Commit 5c22bcf6 authored by Vincent Penquerc'h's avatar Vincent Penquerc'h

matroska: blindly fix writing variable length negative values

Spotted while fixing something else in the area.

Nothing calls this with a negative value.
parent 5b9fa4e6
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment