mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 07:37:10 +08:00

committed by
Max Hawkins

parent
de31bb3c60
commit
de6e6a63bc
@@ -45,7 +45,7 @@ func (p RapidResynchronizationRequest) Marshal() ([]byte, error) {
|
||||
|
||||
// Unmarshal decodes the RapidResynchronizationRequest from binary
|
||||
func (p *RapidResynchronizationRequest) Unmarshal(rawPacket []byte) error {
|
||||
|
||||
|
||||
if len(rawPacket) < (headerLength + (ssrcLength * 2)) {
|
||||
return errPacketTooShort
|
||||
}
|
||||
@@ -55,7 +55,7 @@ func (p *RapidResynchronizationRequest) Unmarshal(rawPacket []byte) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if h.Type != TypeTransportSpecificFeedback || h.Count != 1 {
|
||||
if h.Type != TypeTransportSpecificFeedback || h.Count != 1 {
|
||||
return errWrongType
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user