private void setModeExtension() throws InvalidAudioFrameException {
int index = (mpegBytes[BYTE_4] & MASK_MP3_MODE_EXTENSION) >> 4;
if (layer == LAYER_III) {
modeExtension = modeExtensionLayerIIIMap.get(index);
if (getModeExtension() == null) {
throw new InvalidAudioFrameException("Invalid Mode Extension");
}
} else {
modeExtension = modeExtensionMap.get(index);
if (getModeExtension() == null) {
throw new InvalidAudioFrameException("Invalid Mode Extension");
}
}
}