mts: actually updating time and gps now

This commit is contained in:
saxon 2018-12-13 17:13:34 +10:30
parent 05fd7c37d1
commit afc7c1f086
1 changed files with 10 additions and 15 deletions

View File

@ -34,7 +34,6 @@ import (
"bitbucket.org/ausocean/av/stream/mts/pes"
"bitbucket.org/ausocean/av/stream/mts/psi"
"fmt"
)
var (
@ -188,7 +187,6 @@ func (e *Encoder) writePSI() error {
return err
}
/*
// Update pmt table time and gps
err = psi.UpdateTime(pmtTable, metaData.time)
if err != nil {
@ -198,17 +196,14 @@ func (e *Encoder) writePSI() error {
if err != nil {
return nil
}
*/
packet := addPadding(pmtTable)
fmt.Println(len(pmtTable))
// Create mts packet from pmt table
pmtPkt := Packet{
PUSI: true,
PID: pmtPid,
CC: e.ccFor(pmtPid),
AFC: hasPayload,
Payload: packet,
Payload: addPadding(pmtTable),
}
_, err = e.dst.Write(pmtPkt.Bytes())
if err != nil {