From b1e58905547034ef183da647a22ff1ecafe32369 Mon Sep 17 00:00:00 2001 From: scruzin Date: Thu, 11 Jul 2019 14:54:06 +0930 Subject: [PATCH] Update prev in IndexPid. --- container/mts/mpegts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/container/mts/mpegts.go b/container/mts/mpegts.go index 338fa235..6e5db0b0 100644 --- a/container/mts/mpegts.go +++ b/container/mts/mpegts.go @@ -240,6 +240,7 @@ func IndexPid(d []byte, pids ...uint16) (idx int, m map[string]string, err error err = errors.Wrap(err, "PIDs not consecutive") return } + prev = i } return }