pull/353/head
q191201771 10 months ago
parent 7bee79fef7
commit d4c38c17f2

@ -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

@ -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 (

@ -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 (

@ -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

Loading…
Cancel
Save