BoxParser.irefBox = function(size) {
	BoxParser.FullBox.call(this, "iref", size);
	this.references = [];
}	
BoxParser.irefBox.prototype = new BoxParser.FullBox();
BoxParser.irefBox.prototype.parse = function(stream) {
	var ret;
	var entryCount;
	var box;
	this.parseFullHeader(stream);

	while (stream.getPosition() < this.start+this.size) {
		ret = BoxParser.parseOneBox(stream, true);
		if (this.version === 0) {
			box = new BoxParser.SingleItemTypeReferenceBox(ret.type, ret.size, ret.hdr_size, ret.start);
		} else {
			box = new BoxParser.SingleItemTypeReferenceBoxLarge(ret.type, ret.size, ret.hdr_size, ret.start);
		}
		box.parse(stream);
		this.references.push(box);
	}
}

@@ -620,16 +620,251 @@
 t);%0A%09%09%7D%0A
+%09%09if (box.write === BoxParser.Box.prototype.write && box.type !== %22mdat%22) %7B%0A%09%09%09Log.warn(%22BoxParser%22, box.type+%22 box writing not yet implemented, keeping unparsed data in memory for later write%22);%0A%09%09%09box.parseDataAndRewind(stream);%0A%09%09%7D%0A
 %09%09box.pa

fix parsing/writing of unknown iref