mp4box
Version:
JavaScript version of GPAC's MP4Box tool
16 lines (15 loc) • 442 B
JavaScript
BoxParser.createFullBoxCtor("saio", "SampleAuxiliaryInformationOffsetsBox", function(stream) {
if (this.flags & 0x1) {
this.aux_info_type = stream.readString(4);
this.aux_info_type_parameter = stream.readUint32();
}
var count = stream.readUint32();
this.offset = [];
for (var i = 0; i < count; i++) {
if (this.version === 0) {
this.offset[i] = stream.readUint32();
} else {
this.offset[i] = stream.readUint64();
}
}
});