fix: rtsp add send rtcp

This commit is contained in:
langhuihui
2024-11-29 12:08:14 +08:00
parent 42ba757aef
commit 6eef325fa6
7 changed files with 36 additions and 37 deletions

View File

@@ -2,7 +2,6 @@ package rtp
import (
"encoding/base64"
"errors"
"fmt"
"io"
"slices"
@@ -22,7 +21,7 @@ import (
type (
H26xCtx struct {
RTPCtx
seq uint16
seq uint16
dtsEst util.DTSEstimator
}
H264Ctx struct {
@@ -410,7 +409,7 @@ func (r *Video) Demux(ictx codec.ICodecCtx) (any, error) {
if nalu.Size > 0 {
nalu.AppendOne(packet.Payload[offset:])
} else {
return nil, errors.New("fu have no start")
continue
}
if util.Bit1(b1, 1) {
gotNalu()