mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-09-26 19:51:26 +08:00
build(deps): bump github.com/bluenviron/gortsplib/v4 (#4236)
Bumps [github.com/bluenviron/gortsplib/v4](https://github.com/bluenviron/gortsplib) from 4.12.2 to 4.12.3. - [Commits](https://github.com/bluenviron/gortsplib/compare/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] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
4
go.mod
4
go.mod
@@ -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
|
||||
|
8
go.sum
8
go.sum
@@ -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=
|
||||
|
@@ -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)
|
||||
if err != nil {
|
||||
if errors.Is(err, h264.ErrAVCCNoNALUs) {
|
||||
return nil
|
||||
@@ -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)
|
||||
if err != nil {
|
||||
if errors.Is(err, h264.ErrAVCCNoNALUs) {
|
||||
return nil
|
||||
@@ -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)
|
||||
if err != nil {
|
||||
if errors.Is(err, h264.ErrAVCCNoNALUs) {
|
||||
return nil
|
||||
@@ -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)
|
||||
if err != nil {
|
||||
if errors.Is(err, h264.ErrAVCCNoNALUs) {
|
||||
return nil
|
||||
@@ -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)
|
||||
if err != nil {
|
||||
if errors.Is(err, h264.ErrAVCCNoNALUs) {
|
||||
return nil
|
||||
|
@@ -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()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@@ -183,9 +183,7 @@ func (f *formatFMP4) initialize() bool {
|
||||
firstReceived = true
|
||||
}
|
||||
|
||||
sampl, err := fmp4.NewPartSampleAV1(
|
||||
randomAccess,
|
||||
tunit.TU)
|
||||
sampl, err := fmp4.NewPartSampleAV12(tunit.TU)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user