Comcast / gots

MPEG Transport Stream handling in Go
Other
308 stars 88 forks source link

Handle cases where the accumulator buffer is empty #130

Closed eric closed 5 years ago

eric commented 5 years ago

We found this panic in the wild:

goroutine 35 [running]:
github.com/Comcast/gots/psi.PointerField(...)
    .../psi/psi.go:36
github.com/Comcast/gots/psi.PmtAccumulatorDoneFunc(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
    .../psi/pmt.go:66 +0xf8
github.com/Comcast/gots/packet.(*accumulator).Add(0xc000159aa0, 0xc000206000, 0xbc, 0xbc, 0x1410400, 0x15fffff, 0xc000081c50)
    .../packet/accumulator.go:86 +0x13a