[Matroska-devel] SImple Block Header

Steve Lhomme slhomme at matroska.org
Sat Jun 18 14:04:50 CEST 2011


Yes the (4 + (4+4) seem odd, but it's very likely to take care of
different ways of lacing the content.

On Thu, Jun 16, 2011 at 3:13 PM, Moritz Bunkus <moritz at bunkus.org> wrote:
> Hey,
>
> a simple block element, like every other EBML element, begins with its
> ID and its total size.
>
>> Size = 1 + (1-8) + 4 + (4 + (4)) octets. So from 6 to 21 octets.
>
> Here: The ID of the simple block element is one byte long (0xA3), hence
> the "1".
>
> The total size of the element can be anywhere from 6 to several million
> bytes. The size is encoded the same everywhere: as a variable length
> integer. Hence the "(1-8)", meaning it is coded with at least 1 but at
> most 8 bytes.
>
> The next element is the track number etc. This is usually one byte long,
> but can be longer; again it's a variable length integer.
>
> Then there's the relative timecode stored as a two-byte signed integer.
>
> Well... I don't understand the 4 + (4 + (4)) part either ;) Follow
> http://www.matroska.org/technical/specs/index.html#simpleblock_structure
> How to calculate lacing is shown right above that section.
>
> Regards,
> mosu
>
> _______________________________________________
> Matroska-devel mailing list
> Matroska-devel at lists.matroska.org
> http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-devel
> Read Matroska-Devel on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.devel
>



-- 
Steve Lhomme
Matroska association Chairman



More information about the Matroska-devel mailing list