From d4c38c17f267748d225da5b371c011ffd11df467 Mon Sep 17 00:00:00 2001 From: q191201771 <191201771@qq.com> Date: Thu, 18 Apr 2024 20:22:35 +0800 Subject: [PATCH] fmt --- README.md | 2 +- pkg/base/basic_session_stat_test.go | 8 ++++++++ pkg/mpegts/crc32_test.go | 8 ++++++++ pkg/rtmp/handshake.go | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 38912a9..c068821 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 cbeb062..5c9d489 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 a1dc3a7..67f8991 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 82e54af..8835d93 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