mirror of https://bitbucket.org/ausocean/av.git
stream/mts/encoder.go: simplified updateMeta
This commit is contained in:
parent
4d4a8e04ec
commit
eb54871402
|
@ -257,9 +257,8 @@ func (e *Encoder) ccFor(pid int) byte {
|
|||
|
||||
// updateMeta ...
|
||||
func updateMeta(b *[]byte) error {
|
||||
m := Meta.Encode()
|
||||
p := psi.PSIBytes(*b)
|
||||
err := p.AddDescriptor(psi.MetadataTag, m)
|
||||
err := p.AddDescriptor(psi.MetadataTag, Meta.Encode())
|
||||
*b = []byte(p)
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue