stream/mts/encoder.go: simplified updateMeta

This commit is contained in:
saxon 2019-02-01 11:39:47 +10:30
parent 4d4a8e04ec
commit eb54871402
1 changed files with 1 additions and 2 deletions

View File

@ -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
}