/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// "test.webm" contains 8 SimpleBlocks in a single Cluster. The blocks with // timecodes 100000000 and are 133000000 skipped by WebMBufferedParser // because they occur after a block with timecode 160000000 and the parser // expects in-order timecodes per the WebM spec. The remaining 6 // SimpleBlocks have the following attributes: staticconst uint64_t gTimecodes[] = {66000000, 160000000, 166000000,
200000000, 233000000, 320000000}; staticconst int64_t gEndOffsets[] = {466, 737, 1209, 1345, 1508, 1980};
nsTArray<uint8_t> webmData; // This file contains EBMLMaxIdLength=3, but a Segment element (and maybe // others) whose Id VInt has length 4.
ReadFile("test_InvalidElementId.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxIdLength=4, but a dummy element whose Id VInt has // length 5.
ReadFile("test_InvalidLargeElementId.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxIdLength=3. // Per draft-ietf-cellar-matroska-13 EBMLMaxIdLength MUST be 4. But element // ids can also be between 1 and 5 octets long. 5 only if EBMLMaxIdLength // specifies it. At least 3 is too short.
ReadFile("test_InvalidSmallEBMLMaxIdLength.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxIdLength=5 and a dummy element with a 5 octet // long id. Per draft-ietf-cellar-matroska-13 EBMLMaxIdLength MUST be 4. But // element ids can also be between 1 and 5 octets long. 5 only if // EBMLMaxIdLength specifies it. We better tolerate this.
ReadFile("test_ValidLargeEBMLMaxIdLength.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxIdLength=6. // Per draft-ietf-cellar-matroska-13 EBMLMaxIdLength MUST be 4. But // element ids can also be between 1 and 5 octets long. 5 only if // EBMLMaxIdLength specifies it. At least 6 is too long.
ReadFile("test_InvalidLargeEBMLMaxIdLength.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxSizeLength=7 and no element with an element size // longer than 7 bytes.
ReadFile("test_ValidSmallEBMLMaxSizeLength.webm", webmData);
nsTArray<uint8_t> webmData; // This file contains EBMLMaxSizeLength=7, but the Segment element size VInt // has length 8.
ReadFile("test_InvalidElementSize.webm", webmData);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.