Skip to content

Commit

Permalink
saiz: add sample_count to box structure
Browse files Browse the repository at this point in the history
This is useful when the `default_sample_info_size` is used and
there are no entries in the `sample_info_size` array.
  • Loading branch information
bradh committed Mar 10, 2024
1 parent fbc0348 commit c0c03ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parsing/saiz.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ BoxParser.createFullBoxCtor("saiz", function(stream) {
for (var i = 0; i < count; i++) {
this.sample_info_size[i] = stream.readUint8();
}
} else {
this.sample_count = count;
}
});

0 comments on commit c0c03ad

Please sign in to comment.