From eb5487140272059bc4d6d0102e9a68df6e3cddf2 Mon Sep 17 00:00:00 2001 From: saxon Date: Fri, 1 Feb 2019 11:39:47 +1030 Subject: [PATCH] stream/mts/encoder.go: simplified updateMeta --- stream/mts/encoder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stream/mts/encoder.go b/stream/mts/encoder.go index 833c18d9..cc4a699a 100644 --- a/stream/mts/encoder.go +++ b/stream/mts/encoder.go @@ -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 }