pion / webrtc

Pure Go implementation of the WebRTC API
https://pion.ly
MIT License
13.88k stars 1.66k forks source link

fix: fix slice init length #2912

Closed rusttech closed 1 month ago

rusttech commented 1 month ago

Description

The intention here should be to initialize a slice with a capacity of len(m.pendingPackets) rather than initializing the length of this slice.

Reference issue

Fixes #...

Sean-Der commented 1 month ago

Hi @rusttech

Unfortunately this change doesn’t compile. Mind checking it again, thank you!