Skip to content

Commit

Permalink
Merge pull request #369 from bradh/cmpd_box_parse
Browse files Browse the repository at this point in the history
cmpd: fix parsing
  • Loading branch information
cconcolato committed Nov 1, 2023
2 parents 6ebcc41 + 5188783 commit a8f4cd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsing/cmpd.js
Original file line number Diff line number Diff line change
@@ -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());
Expand Down

0 comments on commit a8f4cd8

Please sign in to comment.