mirror of https://bitbucket.org/ausocean/av.git
stream/mts/psi: removed deleteDescriptor func as we don't need it yet
This commit is contained in:
parent
4a3464252b
commit
287238ddd1
|
@ -321,15 +321,6 @@ func (p *PSIBytes) SetProgInfoLen(l int) {
|
||||||
(*p)[ProgramInfoLenIdx2] = byte(l)
|
(*p)[ProgramInfoLenIdx2] = byte(l)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *PSIBytes) deleteDescriptor(tag int) error {
|
|
||||||
if i, desc := p.HasDescriptor(tag); desc != nil {
|
|
||||||
descLen := len(desc)
|
|
||||||
newProgInfoLen := p.ProgramInfoLen() - descLen
|
|
||||||
p.SetProgInfoLen(newProgInfoLen)
|
|
||||||
}
|
|
||||||
return errors.New("Descriptor doesn't exist")
|
|
||||||
}
|
|
||||||
|
|
||||||
func (d *Descriptor) update(data []byte) {
|
func (d *Descriptor) update(data []byte) {
|
||||||
if len(data) > int((*d)[1]) {
|
if len(data) > int((*d)[1]) {
|
||||||
// TODO: implement resizing of descriptor
|
// TODO: implement resizing of descriptor
|
||||||
|
|
Loading…
Reference in New Issue