diff --git a/README.md b/README.md index 38912a95..c068821f 100644 --- a/README.md +++ b/README.md @@ -109,4 +109,4 @@ Bugs, questions, suggestions, anything related or not, feel free to contact me w MIT, see [License](https://github.com/q191201771/lal/blob/master/LICENSE). -this note updated by yoko, 202303 +this note updated by yoko, 202311 diff --git a/pkg/base/basic_session_stat_test.go b/pkg/base/basic_session_stat_test.go index cbeb0626..5c9d4891 100644 --- a/pkg/base/basic_session_stat_test.go +++ b/pkg/base/basic_session_stat_test.go @@ -1,3 +1,11 @@ +// Copyright 2023, Chef. All rights reserved. +// https://github.com/q191201771/lal +// +// Use of this source code is governed by a MIT-style license +// that can be found in the License file. +// +// Author: Chef (191201771@qq.com) + package base import ( diff --git a/pkg/mpegts/crc32_test.go b/pkg/mpegts/crc32_test.go index a1dc3a78..67f89911 100644 --- a/pkg/mpegts/crc32_test.go +++ b/pkg/mpegts/crc32_test.go @@ -1,3 +1,11 @@ +// Copyright 2023, Chef. All rights reserved. +// https://github.com/q191201771/lal +// +// Use of this source code is governed by a MIT-style license +// that can be found in the License file. +// +// Author: Chef (191201771@qq.com) + package mpegts import ( diff --git a/pkg/rtmp/handshake.go b/pkg/rtmp/handshake.go index 82e54af6..8835d93d 100644 --- a/pkg/rtmp/handshake.go +++ b/pkg/rtmp/handshake.go @@ -262,7 +262,7 @@ func findDigest(b []byte, base int, key []byte) int { digest := make([]byte, keyLen) makeDigestWithoutCenterPart(b, offs, key, digest) // compare origin digest in buffer with calced digest - if bytes.Equal(digest, b[offs : offs+keyLen]) { + if bytes.Equal(digest, b[offs:offs+keyLen]) { return offs } return -1