mp4box
Version:
JavaScript version of GPAC's MP4Box tool
17 lines (15 loc) • 549 B
JavaScript
BoxParser.SingleItemTypeReferenceBoxLarge = function(type, size, hdr_size, start) {
BoxParser.Box.call(this, type, size);
this.hdr_size = hdr_size;
this.start = start;
}
BoxParser.SingleItemTypeReferenceBoxLarge.prototype = new BoxParser.Box();
BoxParser.SingleItemTypeReferenceBoxLarge.prototype.parse = function(stream) {
this.from_item_ID = stream.readUint32();
var count = stream.readUint16();
this.references = [];
for(var i = 0; i < count; i++) {
this.references[i] = {};
this.references[i].to_item_ID = stream.readUint32();
}
}