extraData = null;
}
public FlvHeader(IOHelper ioh) {
this.ioh = ioh;
FileReader fh = ioh.getFileReader();
fh.setDebug(ioh.isDebug());
signature = fh.readString(3);
version = fh.readUint(1);
int typeFlags = fh.readUint(1);
containsAudio = (typeFlags & 4) == 1;
containsVideo = (typeFlags & 1) == 1;
dataOffset = fh.readUint(4);
if (dataOffset - 9 > 0) extraData = fh.readString(dataOffset - 9);
else extraData = "";
}