Do not start RTPStats on a padding packet. (#1984)

This commit is contained in:
Raja Subramanian
2023-08-21 18:04:03 +05:30
committed by GitHub
parent 32af15dc80
commit b1098cda41
3 changed files with 35 additions and 36 deletions
+2 -2
View File
@@ -180,6 +180,7 @@ func TestNewBuffer(t *testing.T) {
Header: rtp.Header{
SequenceNumber: 65534,
},
Payload: []byte{1},
},
{
Header: rtp.Header{
@@ -201,8 +202,7 @@ func TestNewBuffer(t *testing.T) {
buff := NewBuffer(123, pool, pool)
buff.codecType = webrtc.RTPCodecTypeVideo
require.NotNil(t, buff)
buff.OnRtcpFeedback(func(_ []rtcp.Packet) {
})
buff.OnRtcpFeedback(func(_ []rtcp.Packet) {})
buff.Bind(webrtc.RTPParameters{
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},