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