Fix svc encoding for chrome mobile on iOS (#3751)

The browser could send rtp packets of svc encoding without
DD extension while the sdp negotiates it, sfu detects extension
in rtp packet for this case.
This commit is contained in:
cnderrauber
2025-06-23 22:39:12 +08:00
committed by GitHub
parent e467daa0d4
commit 8c2fc0bcd9
5 changed files with 19 additions and 46 deletions
+2 -2
View File
@@ -890,8 +890,8 @@ func (b *Buffer) getExtPacket(rtpPacket *rtp.Packet, arrivalTime int64, flowStat
ddVal, videoLayer, err := b.ddParser.Parse(ep.Packet)
if err != nil {
if errors.Is(err, ErrDDExtentionNotFound) {
if b.mime == mime.MimeTypeVP8 {
b.logger.Infow("dd extension not found for vp8 packet, disable dd parser")
if b.mime == mime.MimeTypeVP8 || b.mime == mime.MimeTypeVP9 {
b.logger.Infow("dd extension not found, disable dd parser")
b.ddParser = nil
b.createFrameRateCalculator()
}