[Matroska-users] semantics specify encoded values or unencoded values?

Moritz Bunkus moritz at bunkus.org
Fri Jan 22 18:23:52 CET 2010


Hey,

On Thu, 21 Jan 2010 22:55:11 -0500, "Matthew Heaney"
<matthewjheaney at hotmail.com> wrote:

> Are predefined tags
> required to have the minimum-length encoding (as is listed on the web
page
> cited above) in the byte stream?

No. It's fine to code variable-length integers with more octets as long as
their content is identical AND as long as they don't exceed the maximum
number of octets mentioned in the EBML header: EBML maximum size length,
defaults to 8, maximum is 8 for Matroska, and EBML maximum ID length,
defaults to 4, maximum is 4 for Matroska.

As a matter of fact mkvmerge uses this technique in several places -- but
only for the length attribute as the maximum ID length is 4 already and the
level 1 elements all have four-byte IDs (cluster, tracks, cues etc).

Regards,
Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds



More information about the Matroska-users mailing list