webrtc/modules/audio_coding
Jakob Ivarsson 53e41a2bc6 Ignore old, duplicate and overlapping packets in packet arrival history.
This should mostly be a noop, but in a follow up cl we will insert all
packets after splitting, which will allow for adapting the delay to FEC
(both RED and codec inband) that is useful for decoding (i.e. not
already covered by primary packets).

A slight behavior change is that reordered packets are no longer
included in max delay calculation.

Implementation details:
- A map ordered by RTP timestamp is used to store the arrivals.
- When inserting new packets, we check if the timestamp is too old, already exists or if the packet is fully covered by another packet (based on timestamp and packet duration).
- Separate deques are used to keep track of "min" and "max" arrivals (as defined by ordering operators). The queues maintain a strictly increasing/decreasing order so that min/max is always at begin().

Bug: webrtc:13322
Change-Id: I8b6cf5afff77b4adc3c29745b95627e955715b5a
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/337184
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#41656}
2024-02-01 15:05:19 +00:00
..
acm2 Remove post-decode VAD 2024-02-01 12:37:23 +00:00
audio_network_adaptor Try removing RTC_PUSH_IGNORING_WUNDEF() around proto includes 2023-11-01 08:21:05 +00:00
codecs Fix a fuzzer-found issue in G.722 decoder 2024-01-31 17:38:30 +00:00
g3doc Reland "Migrate WebRTC documentation to new renderer" 2023-01-31 09:30:04 +00:00
include Format /modules 2023-04-20 02:02:45 +00:00
neteq Ignore old, duplicate and overlapping packets in packet arrival history. 2024-02-01 15:05:19 +00:00
test Reland "Unify access to SDP codec parameters" 2024-01-03 12:03:11 +00:00
audio_coding.gni Reland "[ACM] iSAC audio codec removed" 2022-11-17 12:52:35 +00:00
BUILD.gn Remove post-decode VAD 2024-02-01 12:37:23 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
OWNERS Add jakobi to modules/audio_coding OWNERS 2021-06-18 11:52:58 +00:00