webrtc/modules/audio_coding
Jakob Ivarsson e98954c35e Prevent updating state in the delay manager if the packet was reordered.
Currently, if the last packet was reordered (e.g. due to retransmission) then the next packet's inter-arrival time will be estimated incorrectly due to the jump in sequence numbers. This change prevents that by not resetting the stopwatch on reordered packets.

This will also better estimate inter-arrival times when we have multiple reordered packets in a burst. Currently we would only measure the iat of the first reordered packet correctly and not the ones coming after it.

There is a slight risk introducing this: If we would receive an out of order packet far into the future (in sequence numbers) and then continue getting packets in the normal order, then we would not update the current sequence number for these and incorrectly estimate their inter-arrival times since they would all be considered reordered.

Change-Id: Ic938a37cbddf1cb9c30b610218f56794568d3d01
Bug: webrtc:10178
Reviewed-on: https://webrtc-review.googlesource.com/c/119949
Reviewed-by: Minyue Li <minyue@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Commit-Queue: Jakob Ivarsson‎ <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26572}
2019-02-06 15:30:54 +00:00
..
acm2 Propagate base minimum delay to audio_receiver_stream 2019-02-06 11:07:42 +00:00
audio_network_adaptor [clang-tidy] Apply performance-for-range-copy fixes. 2019-01-28 09:53:50 +00:00
codecs [clang-tidy] Apply performance-move-const-arg fixes. 2019-02-01 15:02:36 +00:00
include Propagate base minimum delay to audio_receiver_stream 2019-02-06 11:07:42 +00:00
neteq Prevent updating state in the delay manager if the packet was reordered. 2019-02-06 15:30:54 +00:00
test (4) Rename files to snake_case: update BUILD.gn, include paths, header guards, and DEPS entries 2019-01-11 17:11:39 +00:00
audio_coding.gni Don't select audio codecs depending on GN vars build_with_{chromium|mozilla} 2017-11-01 18:59:27 +00:00
BUILD.gn Remove rtc_base/scoped_ref_ptr.h. 2019-01-25 20:29:58 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
OWNERS Make ivoc owner of audio_coding. 2018-10-15 15:08:28 +00:00