From b12a78dad2c0292a39c726d256163f67c46172db Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 10 May 2019 17:45:04 +0930 Subject: [PATCH] container/mts/mpegts.go: corrected comment --- container/mts/mpegts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/mts/mpegts.go b/container/mts/mpegts.go index ef2e6306..5f326942 100644 --- a/container/mts/mpegts.go +++ b/container/mts/mpegts.go @@ -341,7 +341,7 @@ func GetPTSRange(clip []byte) (pts [2]uint64, err error) { } pts[0] = _pes.PTS() - // Get the final PTS and calculate PTS immediately after. + // Get the final PTS searching from end of clip for access unit start. for i := len(clip) - PacketSize; i >= 0; i -= PacketSize { copy(_pkt[:], clip[i:i+PacketSize]) if packet.PayloadUnitStartIndicator(&_pkt) {