mirror of https://bitbucket.org/ausocean/av.git
rtp: removed exclamation marks in panics
This commit is contained in:
parent
e32cf9c1b7
commit
103bd2b91c
|
@ -58,21 +58,21 @@ func (p *Pkt) Bytes() []byte {
|
|||
}
|
||||
|
||||
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 {
|
||||
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 {
|
||||
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 {
|
||||
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 {
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue