mirror of https://bitbucket.org/ausocean/av.git
mts: fixed build error
This commit is contained in:
parent
692f5772a1
commit
1436d1f256
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue