diff --git a/src/parsing/cmpd.js b/src/parsing/cmpd.js index edd195c0..9c839765 100644 --- a/src/parsing/cmpd.js +++ b/src/parsing/cmpd.js @@ -1,9 +1,9 @@ BoxParser.createBoxCtor("cmpd", function(stream) { - this.component_count = stream.readUint16(); + this.component_count = stream.readUint32(); this.component_types = []; this.component_type_urls = []; for (i = 0; i < this.component_count; i++) { - var component_type = stream.readUint32(); + var component_type = stream.readUint16(); this.component_types.push(component_type); if (component_type >= 0x8000) { this.component_type_urls.push(stream.readCString());