diff --git a/go.mod b/go.mod index b1b98a8..75b3e0e 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/Comcast/gots/v2 v2.2.1 - github.com/Eyevinn/mp4ff v0.41.1-0.20240123164056-bbd4656aecc0 + github.com/Eyevinn/mp4ff v0.42.0 github.com/asticode/go-astits v1.13.0 github.com/stretchr/testify v1.8.4 ) diff --git a/go.sum b/go.sum index 73df12f..7e9c4c1 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ github.com/Comcast/gots/v2 v2.2.1 h1:LU/SRg7p2KQqVkNqInV7I4MOQKAqvWQP/PSSLtygP2s= github.com/Comcast/gots/v2 v2.2.1/go.mod h1:firJ11on3eUiGHAhbY5cZNqG0OqhQ1+nSZHfsEEzVVU= -github.com/Eyevinn/mp4ff v0.41.1-0.20240123164056-bbd4656aecc0 h1:TVO5vjF4CEAB6OKR0RWMQFvHXtZ+UdKCsp+awECiIVE= -github.com/Eyevinn/mp4ff v0.41.1-0.20240123164056-bbd4656aecc0/go.mod h1:w/6GSa5ghZ1VavzJK6McQ2/flx8mKtcrKDr11SsEweA= +github.com/Eyevinn/mp4ff v0.42.0 h1:I85b/EDTkP77GsoBL8nRV6sfFKZhAXoP6oJHU8fv6kM= +github.com/Eyevinn/mp4ff v0.42.0/go.mod h1:w/6GSa5ghZ1VavzJK6McQ2/flx8mKtcrKDr11SsEweA= github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= github.com/asticode/go-astikit v0.42.0 h1:pnir/2KLUSr0527Tv908iAH6EGYYrYta132vvjXsH5w= github.com/asticode/go-astikit v0.42.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0= diff --git a/internal/avc.go b/internal/avc.go index 75cc757..04aeb94 100644 --- a/internal/avc.go +++ b/internal/avc.go @@ -12,7 +12,7 @@ type AvcPS struct { spss map[uint32]*avc.SPS ppss map[uint32]*avc.PPS spsnalu []byte - ppsnalus [][]byte + ppsnalus map[uint32][]byte Statistics StreamStatistics } @@ -31,7 +31,7 @@ func (a *AvcPS) setSPS(nalu []byte) error { if a.spss == nil { a.spss = make(map[uint32]*avc.SPS, 1) a.ppss = make(map[uint32]*avc.PPS, 1) - a.ppsnalus = make([][]byte, 1) + a.ppsnalus = make(map[uint32][]byte) } sps, err := avc.ParseSPSNALUnit(nalu, true) if err != nil { diff --git a/internal/hevc.go b/internal/hevc.go index ecfc1b6..007a01a 100644 --- a/internal/hevc.go +++ b/internal/hevc.go @@ -14,7 +14,7 @@ type HevcPS struct { ppss map[uint32]*hevc.PPS vpsnalu []byte spsnalu []byte - ppsnalus [][]byte + ppsnalus map[uint32][]byte Statistics StreamStatistics } @@ -22,7 +22,7 @@ func (a *HevcPS) setSPS(nalu []byte) error { if a.spss == nil { a.spss = make(map[uint32]*hevc.SPS, 1) a.ppss = make(map[uint32]*hevc.PPS, 1) - a.ppsnalus = make([][]byte, 1) + a.ppsnalus = make(map[uint32][]byte, 1) } sps, err := hevc.ParseSPSNALUnit(nalu) if err != nil {