mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 10:52:46 +00:00
Remove DD extension when AV1 not preferred (#1129)
This commit is contained in:
1 parent
9a45b59414
commit
4783db34ef
2 files changed
+28
-18
No files matched your search
@@ -510,7 +510,6 @@ func (b *Buffer) getExtPacket(rawPacket []byte, rtpPacket *rtp.Packet, arrivalTi
|
||||
b.logger.Warnw("could not unmarshal VP8 packet", err)
|
||||
return nil
|
||||
}
|
||||
ep.Payload = vp8Packet
|
||||
ep.KeyFrame = vp8Packet.IsKeyFrame
|
||||
if ep.DependencyDescriptor == nil {
|
||||
ep.Temporal = int32(vp8Packet.TID)
|
||||
@@ -519,6 +518,7 @@ func (b *Buffer) getExtPacket(rawPacket []byte, rtpPacket *rtp.Packet, arrivalTi
|
||||
vp8Packet.TID = uint8(ep.Temporal)
|
||||
ep.Spatial = InvalidLayerSpatial // vp8 don't have spatial scalability, reset to -1
|
||||
}
|
||||
ep.Payload = vp8Packet
|
||||
case "video/h264":
|
||||
ep.KeyFrame = IsH264Keyframe(rtpPacket.Payload)
|
||||
case "video/av1":
|
||||
|
||||
Reference in new issue
Block a user