diff --git a/netConnection.go b/netConnection.go index 34542c7..4f2e964 100644 --- a/netConnection.go +++ b/netConnection.go @@ -439,7 +439,7 @@ func (conn *NetConnection) readChunk() (msg *Chunk, err error) { } msgLen := int(chunkHead.MessageLength) if !ok { - currentBody = (pool.GetSlice(msgLen))[:0] + currentBody = make([]byte,0,msgLen) conn.incompleteRtmpBody[ChunkStreamID] = currentBody }