Comcast / gots

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

Initialize buffer so Reset can be idempotent on startup #155

Closed LimitlessEarth closed 3 years ago

LimitlessEarth commented 3 years ago

Calling buf.Reset() on a nil bytes.Buffer pointer causes a runtime panic. This gets rid of that panic and better reuses memory.