mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
fix wrong RTP-Info header (https://github.com/aler9/rtsp-simple-server/issues/922)
- fix truncation to seconds of RTP time in RTP-Info - add a small quantity to rtptime in RTP-Info - add 1 to last sequence number in RTP-Info
This commit is contained in:
@@ -1743,7 +1743,7 @@ func TestServerReadAdditionalInfos(t *testing.T) {
|
||||
Path: "/teststream/trackID=0",
|
||||
}).String(),
|
||||
SequenceNumber: func() *uint16 {
|
||||
v := uint16(556)
|
||||
v := uint16(557)
|
||||
return &v
|
||||
}(),
|
||||
Timestamp: (*rtpInfo)[0].Timestamp,
|
||||
@@ -1777,7 +1777,7 @@ func TestServerReadAdditionalInfos(t *testing.T) {
|
||||
Path: "/teststream/trackID=0",
|
||||
}).String(),
|
||||
SequenceNumber: func() *uint16 {
|
||||
v := uint16(556)
|
||||
v := uint16(557)
|
||||
return &v
|
||||
}(),
|
||||
Timestamp: (*rtpInfo)[0].Timestamp,
|
||||
@@ -1789,7 +1789,7 @@ func TestServerReadAdditionalInfos(t *testing.T) {
|
||||
Path: "/teststream/trackID=1",
|
||||
}).String(),
|
||||
SequenceNumber: func() *uint16 {
|
||||
v := uint16(87)
|
||||
v := uint16(88)
|
||||
return &v
|
||||
}(),
|
||||
Timestamp: (*rtpInfo)[1].Timestamp,
|
||||
|
Reference in New Issue
Block a user