diff --git a/psi/pmtdescriptor.go b/psi/pmtdescriptor.go index a573faa..70cf79d 100644 --- a/psi/pmtdescriptor.go +++ b/psi/pmtdescriptor.go @@ -80,6 +80,7 @@ const ( // PmtDescriptor represents operations currently necessary on descriptors found in the PMT type PmtDescriptor interface { Tag() uint8 + Data() []byte Format() string IsIso639LanguageDescriptor() bool IsMaximumBitrateDescriptor() bool @@ -114,6 +115,10 @@ func (descriptor *pmtDescriptor) Tag() uint8 { return descriptor.tag } +func (descriptor *pmtDescriptor) Data() []byte { + return descriptor.data +} + func (descriptor *pmtDescriptor) String() string { return descriptor.decode() }