Skip to content

Commit

Permalink
update mediacommon
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Sep 16, 2023
1 parent 77b667c commit fa70218
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.19
require (
github.com/aler9/writerseeker v1.1.0
github.com/asticode/go-astits v1.13.0
github.com/bluenviron/mediacommon v1.2.0
github.com/bluenviron/mediacommon v1.3.0
github.com/gin-gonic/gin v1.9.1
github.com/stretchr/testify v1.8.4
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflx
github.com/asticode/go-astikit v0.30.0/go.mod h1:h4ly7idim1tNhaVkdVBeXQZEE3L0xblP7fCWbgwipF0=
github.com/asticode/go-astits v1.13.0 h1:XOgkaadfZODnyZRR5Y0/DWkA9vrkLLPLeeOvDwfKZ1c=
github.com/asticode/go-astits v1.13.0/go.mod h1:QSHmknZ51pf6KJdHKZHJTLlMegIrhega3LPWz3ND/iI=
github.com/bluenviron/mediacommon v1.2.0 h1:5tz92r2S4gPSiTlycepjXFZCgwGfVL2htCeVsoBac+U=
github.com/bluenviron/mediacommon v1.2.0/go.mod h1:/vlOVSebDwzdRtQONOKLua0fOSJg1tUDHpP+h9a0uqM=
github.com/bluenviron/mediacommon v1.3.0 h1:2ttKdlvEXJSzHTd1+7x4TmJDTqEhLAAPP9QfdnYWo8U=
github.com/bluenviron/mediacommon v1.3.0/go.mod h1:/vlOVSebDwzdRtQONOKLua0fOSJg1tUDHpP+h9a0uqM=
github.com/bytedance/sonic v1.5.0/go.mod h1:ED5hyg4y6t3/9Ku1R6dU/4KyJ48DZ4jPhfY1O2AihPM=
github.com/bytedance/sonic v1.9.1 h1:6iJ6NqdoxCDr6mbY8h18oSO+cShGSMRGCEo7F2h0x8s=
github.com/bytedance/sonic v1.9.1/go.mod h1:i736AoUSYt75HyZLoJW9ERYxcy6eaN6h4BZXU064P/U=
Expand Down
3 changes: 2 additions & 1 deletion muxer.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,11 +209,12 @@ func (m *Muxer) WriteAV1(ntp time.Time, pts time.Duration, tu [][]byte) error {
}

if h.Type == av1.OBUTypeSequenceHeader {
randomAccess = true

Check warning on line 213 in muxer.go

View check run for this annotation

Codecov / codecov/patch

muxer.go#L212-L213

Added lines #L212 - L213 were not covered by tests
if !bytes.Equal(sequenceHeader, obu) {
update = true
sequenceHeader = obu
}
randomAccess = true
}
}

Expand Down

0 comments on commit fa70218

Please sign in to comment.