streaming

Media streaming and broadcast systems in Go
Log | Files | Refs | README | LICENSE

commit 0786aad45876d61e7927fe328c0115d3fd848772
parent 3d5f8eb4010819a69e7efd1819dd4047fbdc8aa1
Author: Oliver Lowe <o@olowe.co>
Date:   Tue,  7 May 2024 13:24:14 +1000

internal/scte35: encode last remaining component of splice_info: crc32

Diffstat:
Minternal/scte35/splice_info.go | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/internal/scte35/splice_info.go b/internal/scte35/splice_info.go @@ -118,6 +118,9 @@ func encodeSpliceInfo(sis *SpliceInfo) ([]byte, error) { binary.LittleEndian.PutUint16(b, uint16(len(buf1))) buf = append(buf, b...) + b = make([]byte, 4) + binary.LittleEndian.PutUint32(b, calculateCRC32(buf)) + buf = append(buf, b...) return buf, nil }