mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 07:37:10 +08:00
Respond to Code Review
Cleanup code RE: @maxhawkins code review on 10/4/2018 Relates to #119
This commit is contained in:

committed by
Woodrow Douglass

parent
f62abe50e8
commit
6f20ce96cc
@@ -15,7 +15,6 @@ type RapidResynchronizationRequest struct {
|
||||
}
|
||||
|
||||
const (
|
||||
rrrFMT = 5
|
||||
rrrLength = 2
|
||||
rrrHeaderLength = ssrcLength * 2
|
||||
rrrMediaOffset = 4
|
||||
@@ -56,7 +55,7 @@ func (p *RapidResynchronizationRequest) Unmarshal(rawPacket []byte) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if h.Type != TypeTransportSpecificFeedback || h.Count != rrrFMT {
|
||||
if h.Type != TypeTransportSpecificFeedback || h.Count != FormatRRR {
|
||||
return errWrongType
|
||||
}
|
||||
|
||||
@@ -72,7 +71,7 @@ func (p *RapidResynchronizationRequest) len() int {
|
||||
// Header returns the Header associated with this packet.
|
||||
func (p *RapidResynchronizationRequest) Header() Header {
|
||||
return Header{
|
||||
Count: rrrFMT,
|
||||
Count: FormatRRR,
|
||||
Type: TypeTransportSpecificFeedback,
|
||||
Length: rrrLength,
|
||||
}
|
||||
|
Reference in New Issue
Block a user