mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 15:46:54 +08:00
Improve rtcp.TestUnmarshal to improve coverage
* Test polymorphic RTCP packet parser * Add tests for more Unmarshal methods Relates to #119
This commit is contained in:

committed by
Max Hawkins

parent
de6e6a63bc
commit
af1b2c9520
@@ -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 != rrrFMT {
|
||||
return errWrongType
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user