rtp: removed exclamation marks in panics

This commit is contained in:
saxon 2018-11-22 19:32:31 +10:30
parent e32cf9c1b7
commit 103bd2b91c
1 changed files with 5 additions and 5 deletions

View File

@ -58,21 +58,21 @@ func (p *Pkt) Bytes() []byte {
} }
if p.P != 0 && p.Padding == 0 { if p.P != 0 && p.Padding == 0 {
panic("Padding bit set to something other than 1, but there is no padding size defined!") panic("Padding bit set to something other than 1, but there is no padding size defined.")
} else if p.P == 0 && p.Padding != 0 { } else if p.P == 0 && p.Padding != 0 {
panic("Padding bit is set to zero, but it's indicated that there is padding!") panic("Padding bit is set to zero, but it's indicated that there is padding.")
} }
if p.CC != 0 { if p.CC != 0 {
panic("CC has been set to something other than 0 - this is not supported yet!") panic("CC has been set to something other than 0 - this is not supported yet.")
} }
if p.X != 0 { if p.X != 0 {
panic("rtp: X (extension header indicator) not 0, but extensiion headers not currently supported!") panic("rtp: X (extension header indicator) not 0, but extensiion headers not currently supported.")
} }
if p.CC != 0 { if p.CC != 0 {
panic("rtp: CC (CSRC count) not 0, but CSRC headers not yet supported!") panic("rtp: CC (CSRC count) not 0, but CSRC headers not yet supported.")
} }
const headSize = 3 * 4 // bytes const headSize = 3 * 4 // bytes