From 1436d1f256b177097e83ebf759c2460d1c18a359 Mon Sep 17 00:00:00 2001 From: saxon Date: Wed, 2 Jan 2019 10:36:46 +1030 Subject: [PATCH] mts: fixed build error --- stream/mts/encoder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream/mts/encoder.go b/stream/mts/encoder.go index 41e8522e..2480ae90 100644 --- a/stream/mts/encoder.go +++ b/stream/mts/encoder.go @@ -86,7 +86,7 @@ type Encoder struct { frameInterval time.Duration ptsOffset time.Duration tsSpace [PktSize]byte - pesSpace [pes.MaxPesLen]byte + pesSpace [pes.MaxPesSize]byte psiCount int @@ -131,7 +131,7 @@ func (e *Encoder) Encode(nalu []byte) error { Data: nalu, HeaderLength: 5, } - buf := pesPkt.Bytes(e.pesSpace[:pes.MaxPesLen]) + buf := pesPkt.Bytes(e.pesSpace[:pes.MaxPesSize]) pusi := true for len(buf) != 0 {