From 6ebb982238fd39238cde6bf30b360d15d5ecc387 Mon Sep 17 00:00:00 2001 From: saxon Date: Mon, 7 Jan 2019 16:18:20 +1030 Subject: [PATCH] psi: improved comment for updateCrc --- stream/mts/psi/crc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/mts/psi/crc.go b/stream/mts/psi/crc.go index 55bad3ed..c173d63c 100644 --- a/stream/mts/psi/crc.go +++ b/stream/mts/psi/crc.go @@ -38,7 +38,7 @@ func addCrc(out []byte) []byte { return out } -// updateCrc updates the crc of psi bytes slice that may have been modified +// updateCrc updates the crc of bytes slice, writing the checksum into the last four bytes. func updateCrc(out []byte) []byte { crc32 := crc32_Update(0xffffffff, crc32_MakeTable(bits.Reverse32(crc32.IEEE)), out[1:len(out)-4]) out[len(out)-4] = byte(crc32 >> 24)