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 }