mts: fixed build error

This commit is contained in:
saxon 2019-01-02 10:36:46 +10:30
parent 692f5772a1
commit 1436d1f256
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ type Encoder struct {
frameInterval time.Duration frameInterval time.Duration
ptsOffset time.Duration ptsOffset time.Duration
tsSpace [PktSize]byte tsSpace [PktSize]byte
pesSpace [pes.MaxPesLen]byte pesSpace [pes.MaxPesSize]byte
psiCount int psiCount int
@ -131,7 +131,7 @@ func (e *Encoder) Encode(nalu []byte) error {
Data: nalu, Data: nalu,
HeaderLength: 5, HeaderLength: 5,
} }
buf := pesPkt.Bytes(e.pesSpace[:pes.MaxPesLen]) buf := pesPkt.Bytes(e.pesSpace[:pes.MaxPesSize])
pusi := true pusi := true
for len(buf) != 0 { for len(buf) != 0 {