Re: Question about Test Suite
Moritz Bunkus <[email protected]>
| Newsgroups | gmane.comp.multimedia.matroska.devel |
|---|---|
| Message-ID | <[email protected]> |
Hey, > How does mkvinfo get to 451452 to begin reading the next element > instead? mkvinfo uses libebml's EbmlMaster::Read() function for reading a cluster en bloc and then outputs which elements libebml has found. EbmlMaster::Read() uses EbmlEmenet::FindNextElement() under the hood for finding the next ID. And that function reads as many bytes as needed for forming a valid ID. So if the byte at position 451451 happens to be 0 (which I haven't verified, mind you) then it will probably be skipped as an EBML ID's first byte is never 0. Similar reasoning for other values for the first byte, e.g. anything smaller than 0x10 would be invalid as EBML IDs can only be four bytes long, and the position of first bit set to 1 determines the size of the EBML ID. 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 iQIcBAABCAAGBQJVseKPAAoJEHSvAK3y4yyFhLYQAMIxwLE7UqhS0cqZNkrJOXDs T2bO+rGDGXq84lpwI4Kdta4wsbTfBpBJRVs0R0cE521pNJusSu+MOls4fX2SX75y LH+DR3CO3M2WjveKxdFD5tM/S2e8fO1UTuR36NqQVzyA04oHvaXkqVSUUzhEUaZn dumA50Pmv7a9UfRsZHDExkXfexzU1AdumfPMUltG0RGw+6VdUkP+qSCsopp9vQYT bFcBJcoEytVFqFuwWe9lxXaq39CDAKTIW7AVdjtnEwDCGiLpMzpv+opP95+lP5RT RV+m7oby5avoT6fep0dhfEkcqJCa28Sd62Td50YFM8PHinwOx+PYroN9aUfvvnvi Ikmb/1hkEKhyxTVmLgb1sGgYYce2x3hrpAfgaf05df2Sb5sNSg6h61cNqKsolJUf kn5EzcPiaZ7x87YuyueBrtd5GBwcfCNqKP8gijR94Bb/l33hEWATXUwZgmxSj4DV hYeV0Oo/5KA3hiyX/8TRfSRwoISuAemL12/zf4Phc6adfg3glxmUL8dBfjqWLy3E FF98vD2XEODRggcqq9a1EfktgYXGmpDdZTl4pLBfIJH8uy2fmCqFhbRe1LNcttNv Eok2txjRPNENfT/ZJnJ3I27Okaikkjp7WAe9ijWuoM9dQc0Smyj+X/bmn5yzPcql 8MRCTsMWrxBUY1zK/htW =l76U -----END PGP SIGNATURE-----