private bool CheckFormat(LABNFile file) { FourCC fourCC = file.ReadFourCC(); if (fourCC == "LABN") { return(true); } return(false); }
protected override SRFile CreateFromStream(string path, Stream stream) { var file = new LABNFile(path, stream); if (!CheckFormat(file)) { file.Close(); file = null; } return(file); }