mirror of
https://github.com/livekit/livekit.git
synced 2026-08-28 00:44:12 +00:00
Fix dynacast for svc codec (#1742)
This commit is contained in:
@@ -624,7 +624,7 @@ func (d *DownTrack) WriteRTP(extPkt *buffer.ExtPacket, layer int32) error {
|
||||
d.bytesSent.Add(uint32(hdr.MarshalSize() + len(payload)))
|
||||
|
||||
if tp.isSwitchingToMaxSpatial && d.onMaxSubscribedLayerChanged != nil && d.kind == webrtc.RTPCodecTypeVideo {
|
||||
d.onMaxSubscribedLayerChanged(d, layer)
|
||||
d.onMaxSubscribedLayerChanged(d, d.forwarder.MaxLayer().Spatial)
|
||||
}
|
||||
|
||||
if extPkt.KeyFrame {
|
||||
|
||||
Reference in New Issue
Block a user