diff --git a/container/mts/mpegts.go b/container/mts/mpegts.go index 064c0f9b..233a120c 100644 --- a/container/mts/mpegts.go +++ b/container/mts/mpegts.go @@ -277,7 +277,7 @@ func FindPSI(d []byte) (int, map[uint16]uint8, map[string]string, error) { return i, nil, meta, errors.Wrap(err, "could not get streams from PMT") } - var streamMap map[uint16]uint8 + streamMap := make(map[uint16]uint8) for _, s := range streams { streamMap[s.ElementaryPid()] = s.StreamType() }