Re: EBML specification component for review - Element Data Size
Moritz Bunkus <[email protected]>
| Newsgroups | gmane.comp.multimedia.matroska.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey, > > Element Data Size > > > > The EBML element data size is encoded as a variable size integer with, by > > default, widths up to 8. Another maximum width value can be set by setting > > another value to EBMLMaxSizeWidth in the EBML header. See section 5.1. > > What's the point of such a header? Do you mean the general EBML header or the EBMLMaxSizeWidth element? You need a general EBML header in order to tell the parser which type of content this file carries. Remember, EBML does not only carry Matroska. It's similar to XML files where you need some namespace declarations so that the parser can actually understand where the element names come from and what they mean; in our case: so that the parser knows what EBML ID 0x4711 is semantically. EBMLMaxSizeWidth on the other hand is… Well… I guess it can be useful for allowing even more element IDs if you ever invent such a crazy format. It's good to be flexible here. I'm pretty sure, though, that no existing parser has ever been tested with EBML IDs (and with EBMLMaxSizeWidth by extension) being longer than four bytes, especially as Matroska only uses four-byte long IDs. > In the context of Matroska, I'd disallow unknown lengths in almost all > contexts (i.e. disallow them by default, allow them only when > explicitly specifified). Because they make demuxing a pain, and most > Matroska demuxers probably support unknown length at a few places at > best. While this being true we have to be careful not to invalidate existing files retroactively. Unknown sizes have been in the specs since the beginning; changing them now is not something we should do on a whim (if at all). Kind regards, mosu _______________________________________________ Matroska-devel mailing list [email protected] http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
signature.asc
(application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAABCAAGBQJVQ1InAAoJEHSvAK3y4yyFoZgQAMvVgzYTqNH6q+sVZxiwMwNq sb8L+hZ2HIPXvrgc0XBcaEuYexrkoi6Oo9xLauUICQLFppmz9w0RYQ7+1h1MZZ3z Kn/2/qFxJsTUX20mtEPiADk7Y4fQUZdfkGtOjzgbeHE/ZXfJg9HuBwzBXg/2X+6z on9IZRVBRYUaGrDsmM8bQpKtfu97P2nXN5N6uWxkYEJcRSFN0K4LauT4Uh0ULG8y MenrtQAEykfUUCCk6GXLtV24SfnRyFCioXOQRXAbhGO41rOmlRKXoRUGKasnvtYP ZJKb5/kBPKmid9GNSWBCKdrhjSzWA45myK26eL1L+hZ3t5QwAzRDs+HniE4E879c p+cOUNXu6sJszYorYreiWrVJsRyPrBPSZTkAWHgx1RKtb6flF7/5PsNUV/YxHCee 4heDOUo0t3E8IYLz4/5EbnRLF4ZC1D2dXtPu76yi517np69MGz8Z+8hgSe3TQnuk d8bSMJ3Z7M4DGr1If57zI77ZB43/UGzBJoyS5jIyg/GnmJxhhTalyNdioOeA0nq+ gqjOgXTHdJCRFAavBfr0mpmUeqFysKckvAjISeJMj4ZTpyXTYEsmsUvCFXn3YowP F9qbKCtwHbeQHBLltMxKSUd4E60nMaGfdNCXeJjTmhz92OrpstYAvF0PYkDhkYp+ iHYihNGAGRkFJElSuIwY =D4kj -----END PGP SIGNATURE-----