container/mts/mpegts.go: corrected comment

This commit is contained in:
Saxon 2019-05-10 17:45:04 +09:30
parent 5179cdaceb
commit b12a78dad2
1 changed files with 1 additions and 1 deletions

View File

@ -341,7 +341,7 @@ func GetPTSRange(clip []byte) (pts [2]uint64, err error) {
} }
pts[0] = _pes.PTS() 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 { for i := len(clip) - PacketSize; i >= 0; i -= PacketSize {
copy(_pkt[:], clip[i:i+PacketSize]) copy(_pkt[:], clip[i:i+PacketSize])
if packet.PayloadUnitStartIndicator(&_pkt) { if packet.PayloadUnitStartIndicator(&_pkt) {