mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 21:53:22 +00:00
Fix dynacast for svc codec (#1742)
This commit is contained in:
1 parent
0354626bfc
commit
fc8375f150
1 file changed
+1
-1
@@ -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