Respond to Code Review

Cleanup code RE: @maxhawkins code review on 10/4/2018
Relates to #119
This commit is contained in:
Woodrow Douglass
2018-12-04 13:44:47 -05:00
committed by Woodrow Douglass
parent f62abe50e8
commit 6f20ce96cc
9 changed files with 89 additions and 66 deletions

View File

@@ -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,
}