[Matroska-devel] please help with EBML Lacing
александр
karmadone at narod.ru
Sat Mar 27 17:56:34 CET 2010
Hi!
Please help with EBML Lacing... I can't calculate correct frame sizes.
For example, I have such header of Simple Block:
A3 50 A6 82 02 00 86 07 9F E1 630A BD 98 5F11 AC ... FirstFrameData
where:
A3 - Simple Block
50A6 - size = 4262
82 - Track Number = 2
0200 - uint - timecode = 512
86 - keyframe, EBML lacing
07 - Frame Count = 8
===
9F - first Frame size: 10011111 = 31
E1 - secont FrameSize = 0xE1 - 0x80 - 0x3F = 0x22 => 34+31= 65
630A - 3rd = 0x630A - 0x4000 - 0x1FFF = 0x30B => 779+65 = 844
BD - 4th = 61 + 844 = 905
...
etc, so I have following 8 frame sizes: 31, 65, 844, 905, 929, 8882, 8926, -16334
Last one with minus because total block size is just 4262.
If I look at the dump closely, I suppose that first 4 frame sizes must be: 31, 65, 860, 842
Please help to find an error.
Best regards,
Alex.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.matroska.org/pipermail/matroska-devel/attachments/20100327/f696f120/attachment.htm
More information about the Matroska-devel
mailing list