From ebc72cfbfc4070263b6ce6ba5049949e2b0e250e Mon Sep 17 00:00:00 2001 From: Saxon Date: Sat, 29 Jun 2019 14:58:16 +0930 Subject: [PATCH] container/mts: for GetPTSRange if a second PTS is not found error is no longer returned and pts2=pts1 --- container/mts/mpegts.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/container/mts/mpegts.go b/container/mts/mpegts.go index eb4bee5d..3f3851a3 100644 --- a/container/mts/mpegts.go +++ b/container/mts/mpegts.go @@ -331,7 +331,6 @@ func GetPTSRange(clip []byte, pid uint16) (pts [2]uint64, err error) { copy(_pkt[:], pkt) payload, err := packet.Payload(&_pkt) if err != nil { - fmt.Printf("_pkt: %v\n", _pkt) return [2]uint64{}, err } @@ -358,6 +357,5 @@ func GetPTSRange(clip []byte, pid uint16) (pts [2]uint64, err error) { return } } - - return [2]uint64{}, errors.New("could only find one access unit in mpegts clip") + return }