[Matroska-devel] Why after 1A 45 DF A3 EBML header code I have 93...

Peter Ivanov qwerty123_1996 at abv.bg
Wed Mar 6 13:10:38 CET 2013


Thanks a lot for the help. I have already understood that 93 and 88 are the size of the filds.








 -------- Оригинално писмо --------

От: Moritz Bunkus moritz at bunkus.org

Относно: Re: [Matroska-devel] Why after 1A 45 DF A3 EBML header code I have
	93...

До: Discussion about the current and future development of Matroska
  

Изпратено на: Сряда, 2013, Март 6 13:59:57 EET


Hey,



On Wed, Mar 6, 2013 at 10:21 AM, Peter Ivanov  qwerty123_1996 at abv.bg > wrote:



> What this code 93 means. After 42 82 DocType code there is 88 befor the

> identificator "matroska".



Every EBML element consists of three parts:



1. its ID

2. its content length

3. its content



You've already identified the EBML ID correctly (0x42 82). Therefore

the next byte(s) contain the content length encoded as an unsigned

EBML integer. Therefore the first byte, 0x88, indicates that the

length is encoded in a single byte and that the content length itself

is 8.



Therefore you read the following 8 bytes as the content, and that's

exactly the string "matroska".



See section 2.1 "Variable size integer" in

 http://www.matroska.org/technical/specs/rfc/index.html  for information

how to read variable-size EBML integer values. As a matter of fact, I

suggest you read the whole section 2 of that document.



Kind 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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.matroska.org/pipermail/matroska-devel/attachments/20130306/2bf6ff28/attachment.html>


More information about the Matroska-devel mailing list