}
// check first two byte to determine whether this is a BD-SUP or HD-DVD-SUP
byte id[] = ToolBox.getFileID(fname, 2);
if (id != null && id[0] == 0x50 && id[1] == 0x47) {
supBD = new SupBD(fname);
subtitleStream = supBD;
supHD = null;
inMode = InputMode.BDSUP;
} else {
supHD = new SupHD(fname);