From 2284d38492f200edd414b03d0cdbea6250d3ca5a Mon Sep 17 00:00:00 2001 From: saxon Date: Mon, 7 Jan 2019 17:00:48 +1030 Subject: [PATCH] psi: removed more unnecessary conversions --- stream/mts/psi/std.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/stream/mts/psi/std.go b/stream/mts/psi/std.go index de28d44a..0cf4d5fb 100644 --- a/stream/mts/psi/std.go +++ b/stream/mts/psi/std.go @@ -38,16 +38,16 @@ var ( Tid: 0x00, Ssi: true, Pb: false, - Sl: uint16(0x0d), + Sl: 0x0d, Tss: &TSS{ - Tide: uint16(0x01), + Tide: 0x01, V: 0, Cni: true, Sn: 0, Lsn: 0, Sd: &PAT{ - Pn: uint16(0x01), - Pmpid: uint16(0x1000), + Pn: 0x01, + Pmpid: 0x1000, }, }, } @@ -57,9 +57,9 @@ var ( Pf: 0x00, Tid: 0x02, Ssi: true, - Sl: uint16(0x12), + Sl: 0x12, Tss: &TSS{ - Tide: uint16(0x01), + Tide: 0x01, V: 0, Cni: true, Sn: 0, @@ -81,9 +81,9 @@ var ( Pf: 0x00, Tid: 0x02, Ssi: true, - Sl: uint16(0x3e), + Sl: 0x3e, Tss: &TSS{ - Tide: uint16(0x01), + Tide: 0x01, V: 0, Cni: true, Sn: 0, @@ -93,13 +93,13 @@ var ( Pil: pmtTimeLocationPil, Pd: []Desc{ Desc{ - Dt: byte(timeDescTag), - Dl: byte(timeDataSize), + Dt: timeDescTag, + Dl: timeDataSize, Dd: make([]byte, timeDataSize), }, Desc{ - Dt: byte(locationDescTag), - Dl: byte(locationDataSize), + Dt: locationDescTag, + Dl: locationDataSize, Dd: make([]byte, locationDataSize), }, },