Skip to content

Commit

Permalink
build(deps): bump github.com/bluenviron/gortsplib/v4
Browse files Browse the repository at this point in the history
Bumps [github.com/bluenviron/gortsplib/v4](https://github.com/bluenviron/gortsplib) from 4.12.2 to 4.12.3.
- [Commits](bluenviron/gortsplib@v4.12.2...v4.12.3)

---
updated-dependencies:
- dependency-name: github.com/bluenviron/gortsplib/v4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
  • Loading branch information
dependabot[bot] authored and aler9 committed Feb 7, 2025
1 parent e8e21bf commit e29e19f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ require (
github.com/alecthomas/kong v1.7.0
github.com/asticode/go-astits v1.13.0
github.com/bluenviron/gohlslib/v2 v2.1.3
github.com/bluenviron/gortsplib/v4 v4.12.2
github.com/bluenviron/mediacommon v1.13.4
github.com/bluenviron/gortsplib/v4 v4.12.3
github.com/bluenviron/mediacommon v1.14.0
github.com/datarhei/gosrt v0.8.0
github.com/fsnotify/fsnotify v1.8.0
github.com/gin-contrib/pprof v1.5.2
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ github.com/benburkert/openpgp v0.0.0-20160410205803-c2471f86866c h1:8XZeJrs4+ZYh
github.com/benburkert/openpgp v0.0.0-20160410205803-c2471f86866c/go.mod h1:x1vxHcL/9AVzuk5HOloOEPrtJY0MaalYr78afXZ+pWI=
github.com/bluenviron/gohlslib/v2 v2.1.3 h1:pysG7F76uCdjSVApwaOjKhiugGab/4t9wZOUKFn5s64=
github.com/bluenviron/gohlslib/v2 v2.1.3/go.mod h1:l99DjPGFms1XR3cxSZ+BIdFgMjJ5cFt/2Z/h+rrdIYQ=
github.com/bluenviron/gortsplib/v4 v4.12.2 h1:ZCiveyk8gumqyVGdliUmfaTJFOSt0JoqsPJ/Ly3gOXI=
github.com/bluenviron/gortsplib/v4 v4.12.2/go.mod h1:QCUYd9eiD44ISFGvgUSbGgJjgjpalYb0SlsHzJ/h0FQ=
github.com/bluenviron/mediacommon v1.13.4 h1:SkMeGHxKDBxBjxjRFVhQKUj11CApLq6QpTJGBR8PfDY=
github.com/bluenviron/mediacommon v1.13.4/go.mod h1:z5LP9Tm1ZNfQV5Co54PyOzaIhGMusDfRKmh42nQSnyo=
github.com/bluenviron/gortsplib/v4 v4.12.3 h1:3EzbyGb5+MIOJQYiWytRegFEP4EW5paiyTrscQj63WE=
github.com/bluenviron/gortsplib/v4 v4.12.3/go.mod h1:SkZPdaMNr+IvHt2PKRjUXxZN6FDutmSZn4eT0GmF0sk=
github.com/bluenviron/mediacommon v1.14.0 h1:lWCwOBKNKgqmspRpwpvvg3CidYm+XOc2+z/Jw7LM5dQ=
github.com/bluenviron/mediacommon v1.14.0/go.mod h1:z5LP9Tm1ZNfQV5Co54PyOzaIhGMusDfRKmh42nQSnyo=
github.com/bytedance/sonic v1.12.6 h1:/isNmCUF2x3Sh8RAp/4mh4ZGkcFAX/hLrzrK3AvpRzk=
github.com/bytedance/sonic v1.12.6/go.mod h1:B8Gt/XvtZ3Fqj+iSKMypzymZxw/FVwgIGKzMzT9r/rk=
github.com/bytedance/sonic/loader v0.1.1/go.mod h1:ncP89zfokxS5LZrJxl5z0UJcsk4M4yY2JpfqGeCtNLU=
Expand Down
15 changes: 10 additions & 5 deletions internal/protocols/rtmp/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ func (r *Reader) OnDataH265(track *format.H265, cb OnDataH26xFunc) {
r.onVideoData[r.videoTrackID(track)] = func(msg message.Message) error {
switch msg := msg.(type) {
case *message.VideoExFramesX:
au, err := h264.AVCCUnmarshal(msg.Payload)
var au h264.AVCC
err := au.Unmarshal(msg.Payload)

Check warning on line 583 in internal/protocols/rtmp/reader.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/reader.go#L582-L583

Added lines #L582 - L583 were not covered by tests
if err != nil {
if errors.Is(err, h264.ErrAVCCNoNALUs) {
return nil
Expand All @@ -590,7 +591,8 @@ func (r *Reader) OnDataH265(track *format.H265, cb OnDataH26xFunc) {
cb(msg.DTS, au)

case *message.VideoExCodedFrames:
au, err := h264.AVCCUnmarshal(msg.Payload)
var au h264.AVCC
err := au.Unmarshal(msg.Payload)

Check warning on line 595 in internal/protocols/rtmp/reader.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/reader.go#L594-L595

Added lines #L594 - L595 were not covered by tests
if err != nil {
if errors.Is(err, h264.ErrAVCCNoNALUs) {
return nil
Expand Down Expand Up @@ -625,7 +627,8 @@ func (r *Reader) OnDataH264(track *format.H264, cb OnDataH26xFunc) {
cb(msg.DTS+msg.PTSDelta, au)

case message.VideoTypeAU:
au, err := h264.AVCCUnmarshal(msg.Payload)
var au h264.AVCC
err := au.Unmarshal(msg.Payload)

Check warning on line 631 in internal/protocols/rtmp/reader.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/reader.go#L630-L631

Added lines #L630 - L631 were not covered by tests
if err != nil {
if errors.Is(err, h264.ErrAVCCNoNALUs) {
return nil
Expand All @@ -639,7 +642,8 @@ func (r *Reader) OnDataH264(track *format.H264, cb OnDataH26xFunc) {
return nil

case *message.VideoExFramesX:
au, err := h264.AVCCUnmarshal(msg.Payload)
var au h264.AVCC
err := au.Unmarshal(msg.Payload)

Check warning on line 646 in internal/protocols/rtmp/reader.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/reader.go#L645-L646

Added lines #L645 - L646 were not covered by tests
if err != nil {
if errors.Is(err, h264.ErrAVCCNoNALUs) {
return nil
Expand All @@ -650,7 +654,8 @@ func (r *Reader) OnDataH264(track *format.H264, cb OnDataH26xFunc) {
cb(msg.DTS, au)

case *message.VideoExCodedFrames:
au, err := h264.AVCCUnmarshal(msg.Payload)
var au h264.AVCC
err := au.Unmarshal(msg.Payload)

Check warning on line 658 in internal/protocols/rtmp/reader.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/reader.go#L657-L658

Added lines #L657 - L658 were not covered by tests
if err != nil {
if errors.Is(err, h264.ErrAVCCNoNALUs) {
return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/protocols/rtmp/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (w *Writer) writeTracks(videoTrack format.Format, audioTrack format.Format)

// WriteH264 writes H264 data.
func (w *Writer) WriteH264(pts time.Duration, dts time.Duration, au [][]byte) error {
avcc, err := h264.AVCCMarshal(au)
avcc, err := h264.AVCC(au).Marshal()

Check warning on line 170 in internal/protocols/rtmp/writer.go

View check run for this annotation

Codecov / codecov/patch

internal/protocols/rtmp/writer.go#L170

Added line #L170 was not covered by tests
if err != nil {
return err
}
Expand Down
10 changes: 3 additions & 7 deletions internal/recorder/format_fmp4.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,7 @@ func (f *formatFMP4) initialize() bool {
firstReceived = true
}

sampl, err := fmp4.NewPartSampleAV1(
randomAccess,
tunit.TU)
sampl, err := fmp4.NewPartSampleAV12(tunit.TU)

Check warning on line 186 in internal/recorder/format_fmp4.go

View check run for this annotation

Codecov / codecov/patch

internal/recorder/format_fmp4.go#L186

Added line #L186 was not covered by tests
if err != nil {
return err
}
Expand Down Expand Up @@ -346,9 +344,8 @@ func (f *formatFMP4) initialize() bool {
return err
}

sampl, err := fmp4.NewPartSampleH26x(
sampl, err := fmp4.NewPartSampleH265(
int32(tunit.PTS-dts),
randomAccess,
tunit.AU)
if err != nil {
return err
Expand Down Expand Up @@ -421,9 +418,8 @@ func (f *formatFMP4) initialize() bool {
return err
}

sampl, err := fmp4.NewPartSampleH26x(
sampl, err := fmp4.NewPartSampleH264(
int32(tunit.PTS-dts),
randomAccess,
tunit.AU)
if err != nil {
return err
Expand Down

0 comments on commit e29e19f

Please sign in to comment.