mirror of
https://github.com/livekit/livekit.git
synced 2026-04-05 21:05:39 +00:00
* Handle duplicate padding packet in the up stream. The following sequence would have produce incorrect results - Sequence number 39 - regular packet - offset = 0 - Sequence number 40 - padding only - drop - offset = 1 - Sequence number 40 - padding only duplicate - was not dropped (this is the bug) - apply offet - sequence number becomes 39 and clashes with previous packet - Sequence number 41 - regular packet - apply offset - goes through as 40. - Sequence number 40 again - does not get dropped - will pass through as 39. * fix duplicate dropping * fix tests * accept repeat last value as padding injection could cause that * use exclusion ranges * more UT and more specific errors