Skip to content

Commit 38b65c2

Browse files
authored
Merge pull request #143 from edgeware/fix-lint-simplification
fix: copy simplification suggested by golangci-lint
2 parents 436e33c + f3d3756 commit 38b65c2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cmd/mp4ff-crop/stblcrop.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,5 @@ func updateStco(b *mp4.StcoBox, offsets []uint64) {
152152

153153
func updateCo64(b *mp4.Co64Box, offsets []uint64) {
154154
b.ChunkOffset = make([]uint64, len(offsets))
155-
for i := range offsets {
156-
b.ChunkOffset[i] = offsets[i]
157-
}
155+
_ = copy(b.ChunkOffset, offsets)
158156
}

0 commit comments

Comments
 (0)