GNOME Bugzilla – Bug 526673
matroska -> GST_EBML_SIZE_UNKNOWN
Last modified: 2008-04-07 09:03:44 UTC
I think that there is a bug in matroska plugin, in ebml-ids.h file. Code is: #define GST_EBML_SIZE_UNKNOWN G_GINT64_CONSTANT(0x00ffffffffffffff) should be: #define GST_EBML_SIZE_UNKNOWN G_GINT64_CONSTANT(0x01ffffffffffffff) Maybe this first byte is somewhere set to 0x01 (it must be, because this byte determines size of this vint value), but I can't find this.
I guess this would be the mask=0x01 in gst_ebml_write_element_size(): if (size != GST_EBML_SIZE_UNKNOWN) { ... } else { mask = 0x01; bytes = 8; } GST_BUFFER_SIZE (buf) += bytes; while (bytes-- > 0) { data[bytes] = size & 0xff; size >>= 8; if (!bytes) *data |= mask; } Please re-open if you still think this is incorrect.