@@ -134,7 +134,6 @@ type Buffer struct {
|
|||||||
packetNotFoundCount atomic.Uint32
|
packetNotFoundCount atomic.Uint32
|
||||||
packetTooOldCount atomic.Uint32
|
packetTooOldCount atomic.Uint32
|
||||||
extPacketTooMuchCount atomic.Uint32
|
extPacketTooMuchCount atomic.Uint32
|
||||||
invalidPacketCount atomic.Uint32
|
|
||||||
|
|
||||||
primaryBufferForRTX *Buffer
|
primaryBufferForRTX *Buffer
|
||||||
rtxPktBuf []byte
|
rtxPktBuf []byte
|
||||||
@@ -231,6 +230,10 @@ func (b *Buffer) Bind(params webrtc.RTPParameters, codec webrtc.RTPCodecCapabili
|
|||||||
switch ext.URI {
|
switch ext.URI {
|
||||||
case dd.ExtensionURI:
|
case dd.ExtensionURI:
|
||||||
if IsSvcCodec(codec.MimeType) {
|
if IsSvcCodec(codec.MimeType) {
|
||||||
|
if b.ddExtID != 0 {
|
||||||
|
b.logger.Warnw("multiple dependency descriptor extensions found", nil, "id", ext.ID, "previous", b.ddExtID)
|
||||||
|
continue
|
||||||
|
}
|
||||||
b.ddExtID = uint8(ext.ID)
|
b.ddExtID = uint8(ext.ID)
|
||||||
frc := NewFrameRateCalculatorDD(b.clockRate, b.logger)
|
frc := NewFrameRateCalculatorDD(b.clockRate, b.logger)
|
||||||
for i := range b.frameRateCalculator {
|
for i := range b.frameRateCalculator {
|
||||||
|
|||||||
Reference in New Issue
Block a user