From 85a5f043c88b5b95cde444e91697d2eec3bd43fc Mon Sep 17 00:00:00 2001 From: Saxon Date: Mon, 27 May 2019 14:08:44 +0930 Subject: [PATCH] codec/h264/lex.go: removed FUIndicatorIdx const in handleFUA --- codec/h264/lex.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/codec/h264/lex.go b/codec/h264/lex.go index 81eca759..b9a58ad2 100644 --- a/codec/h264/lex.go +++ b/codec/h264/lex.go @@ -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