mirror of
https://github.com/bluenviron/mediamtx.git
synced 2026-01-25 04:49:15 -08:00
build(deps): bump github.com/bluenviron/gortsplib/v4 (#4236)
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
Some checks failed
code_lint / golangci_lint (push) Has been cancelled
code_lint / mod_tidy (push) Has been cancelled
code_lint / api_docs (push) Has been cancelled
code_test / test_64 (push) Has been cancelled
code_test / test_32 (push) Has been cancelled
code_test / test_highlevel (push) Has been cancelled
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:
parent
e8e21bfa42
commit
b66efd66da
5 changed files with 20 additions and 19 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue