NetEq: Make the fix for Opus DTX permanent
This change makes the fix for too long delays during Opus DTX periods permanent. The fix has up until now been under an experiment, named WebRTC-NetEqOpusDtxDelayFix. Bug: webrtc:8488,chromium:780849 Change-Id: I006abb67f96d9d7880bf2215d7d6b52db6cbbfbc Reviewed-on: https://webrtc-review.googlesource.com/44420 Reviewed-by: Ivo Creusen <ivoc@webrtc.org> Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21786}
This commit is contained in:
committed by
Commit Bot
parent
70b820fefe
commit
4f2a4a12df
@ -103,9 +103,7 @@ NetEqImpl::NetEqImpl(const NetEq::Config& config,
|
||||
playout_mode_(config.playout_mode),
|
||||
enable_fast_accelerate_(config.enable_fast_accelerate),
|
||||
nack_enabled_(false),
|
||||
enable_muted_state_(config.enable_muted_state),
|
||||
use_dtx_delay_fix_(
|
||||
field_trial::IsEnabled("WebRTC-NetEqOpusDtxDelayFix")) {
|
||||
enable_muted_state_(config.enable_muted_state) {
|
||||
RTC_LOG(LS_INFO) << "NetEq config: " << config.ToString();
|
||||
int fs = config.sample_rate_hz;
|
||||
if (fs != 8000 && fs != 16000 && fs != 32000 && fs != 48000) {
|
||||
@ -877,9 +875,8 @@ int NetEqImpl::GetAudioInternal(AudioFrame* audio_frame, bool* muted) {
|
||||
// This is the criterion that we did decode some data through the speech
|
||||
// decoder, and the operation resulted in comfort noise.
|
||||
const bool codec_internal_sid_frame =
|
||||
use_dtx_delay_fix_ ? (speech_type == AudioDecoder::kComfortNoise &&
|
||||
start_num_packets > packet_list.size())
|
||||
: (speech_type == AudioDecoder::kComfortNoise);
|
||||
(speech_type == AudioDecoder::kComfortNoise &&
|
||||
start_num_packets > packet_list.size());
|
||||
|
||||
if (sid_frame_available || codec_internal_sid_frame) {
|
||||
// Start a new stopwatch since we are decoding a new CNG packet.
|
||||
|
||||
Reference in New Issue
Block a user