1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Handle VP8 packets with no PID.

This commit is contained in:
Juliusz Chroboczek 2023-01-06 23:00:32 +01:00
parent f9ec0f9b43
commit de40cc00a5

View file

@ -283,7 +283,15 @@ func (down *rtpDownTrack) Write(buf []byte) (int, error) {
} }
} }
ok, newseqno, piddelta := down.packetmap.Map(flags.Seqno, flags.Pid) var ok bool
var newseqno, piddelta uint16
if flags.MissingPid {
ok, newseqno, piddelta =
down.packetmap.MapContinuation(flags.Seqno)
} else {
ok, newseqno, piddelta =
down.packetmap.Map(flags.Seqno, flags.Pid)
}
if !ok { if !ok {
return 0, nil return 0, nil
} }