Skip to content

Commit

Permalink
fix short buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohan Totting committed Feb 3, 2025
1 parent ab4c6ba commit 2b11d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rtppool/rtppool.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func New() *RTPPool {
func (r *RTPPool) PutPacket(localPacket *rtp.Packet) {

localPacket.Header = rtp.Header{}
localPacket.Payload = localPacket.Payload[:0]
copy(localPacket.Payload, blankPayload)

r.pool.Put(localPacket)
}
Expand Down

0 comments on commit 2b11d50

Please sign in to comment.