-/*
- unsigned char hdr[4];
-
- stream.Read(&hdr, 4);
- stream.SeekI(-4, wxFromCurrent);
- return (hdr[0] == 'T' && hdr[1] == 'I' && hdr[2] == 'F' && hdr[3] == 'F');
-*/
+ stream.Read(&hdr, 2);
+ stream.SeekI(-2, wxFromCurrent);
+
+ return ((hdr[0] == 0x49 && hdr[1] == 0x49) ||
+ (hdr[0] == 0x4D && hdr[1] == 0x4D));