Do not send DD extension if ID is 0. (#3339)

* disable temporal layer scaling

* remove dummy start

* do not add 0 id

* remove tests

* clean up
This commit is contained in:
Raja Subramanian
2025-01-17 01:08:12 +05:30
committed by GitHub
parent 043464828a
commit e2162f704a
+1 -1
View File
@@ -874,7 +874,7 @@ func (d *DownTrack) WriteRTP(extPkt *buffer.ExtPacket, layer int32) error {
}
// add extensions
if tp.ddBytes != nil {
if d.dependencyDescriptorExtID != 0 && tp.ddBytes != nil {
hdr.SetExtension(uint8(d.dependencyDescriptorExtID), tp.ddBytes)
}
if d.playoutDelayExtID != 0 && d.playoutDelay != nil {