Don't create DDParser for non-svc codec (#2883)

This commit is contained in:
cnderrauber
2024-07-19 10:52:27 +08:00
committed by GitHub
parent a877ba2352
commit 0c5b5537b2
3 changed files with 30 additions and 28 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ func (t *MediaTrackReceiver) SetPotentialCodecs(codecs []webrtc.RTPCodecParamete
}
if !exist {
extHeaders := headers
if !sfu.IsSvcCodec(c.MimeType) {
if !buffer.IsSvcCodec(c.MimeType) {
extHeaders = headersWithoutDD
}
receivers = append(receivers, &simulcastReceiver{