bool AssociationTagDescriptor::verify() const {
	if (getDescriptorTag() != TAG)
		return false;
	
	unsigned use = getUse();
	
	if (use == 0x00) {
		if (getSelectorLength() != 8) {
			return false;
		}
	}
	else if (use == 0x01) {
		if (getSelectorLength() != 0) {
			return false;
		}
	}
	
	return Descriptor::verify();
}
예제 #2
0
파일: si.c 프로젝트: rofehr/omxhddevice
DescriptorTag Descriptor::getDescriptorTag() const {
   return getDescriptorTag(data.getData());
}