mirror of https://bitbucket.org/ausocean/av.git
mts: actually updating time and gps now
This commit is contained in:
parent
05fd7c37d1
commit
afc7c1f086
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue