commit 9268e35f7b16222c233d4d860417677a3926b104
parent 306a69a04da569a65bf082e08e834cdc4ce9274d
Author: Oliver Lowe <o@olowe.co>
Date: Mon, 1 Jul 2024 20:57:22 +1000
scte35: reference issues for future command decoding
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scte35/splice.go b/scte35/splice.go
@@ -264,7 +264,10 @@ func decodeCommand(buf []byte) (*Command, error) {
ins.AvailExpected = uint8(buf[3])
cmd.Insert = &ins
default:
- return nil, fmt.Errorf("TODO: cannot decode command type %s", cmd.Type)
+ // TODO(otl): we could support more commands but we
+ // just haven't written the code yet. See issues
+ // #28 and #29.
+ return nil, fmt.Errorf("cannot decode command type %s", cmd.Type)
}
return &cmd, nil
}