mirror of https://bitbucket.org/ausocean/av.git
stream/mts/psi: deleted some todos as they have been addressed now
This commit is contained in:
parent
1786ed2661
commit
c7d418ce81
|
@ -328,13 +328,11 @@ func (p *PSIBytes) createDescriptor(tag int, data []byte) {
|
|||
copy((*p)[newDescIdx+2:newDescIdx+2+dataLen], data)
|
||||
|
||||
// Update the program info length to account for the new descriptor.
|
||||
// TODO: put this in function set program info length
|
||||
addedLen := dataLen + 2
|
||||
newProgInfoLen := curProgLen + addedLen
|
||||
p.SetProgInfoLen(newProgInfoLen)
|
||||
|
||||
// set section length
|
||||
// TODO: put this in func set program info length
|
||||
newSyntaxSectionLen := int(oldSyntaxSectionLen) + addedLen
|
||||
p.SetSectionLen(newSyntaxSectionLen)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue