codec/h264/lex.go: removed FUIndicatorIdx const in handleFUA

This commit is contained in:
Saxon 2019-05-27 14:08:44 +09:30
parent a39cd31a57
commit 85a5f043c8
1 changed files with 1 additions and 2 deletions

View File

@ -269,8 +269,7 @@ func (l *RTPLexer) handleFUA(d []byte) {
if end {
panic("bad fragmentation packet")
}
const FUIndicatorIdx = 0
newHead := (d[FUIndicatorIdx] & 0xe0) | (d[FUHeadIdx] & 0x1f)
newHead := (d[0] & 0xe0) | (d[0] & 0x1f)
d = d[1:]
d[0] = newHead
l.frag = true