This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
webrtc/modules/audio_coding/neteq Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,8 @@ int Normal::Process(const int16_t* input,
145
145
((1 << 14 ) - win_up_Q14) * expanded[channel_ix][i] + (1 << 13 )) >>
146
146
14 ;
147
147
}
148
- if (fs_hz_ == 48000 ) {
149
- RTC_DCHECK_EQ (win_up_Q14, (1 << 14 ) - 16 );
150
- } else {
151
- RTC_DCHECK_EQ (win_up_Q14, 1 << 14 );
152
- }
148
+ RTC_DCHECK_GT (win_up_Q14,
149
+ (1 << 14 ) - 32 ); // Worst case rouding is a length of 34
153
150
}
154
151
} else if (last_mode == kModeRfc3389Cng ) {
155
152
RTC_DCHECK_EQ (output->Channels (), 1 ); // Not adapted for multi-channel yet.
@@ -187,11 +184,8 @@ int Normal::Process(const int16_t* input,
187
184
((1 << 14 ) - win_up_Q14) * cng_output[i] + (1 << 13 )) >>
188
185
14 ;
189
186
}
190
- if (fs_hz_ == 48000 ) {
191
- RTC_DCHECK_EQ (win_up_Q14, (1 << 14 ) - 16 );
192
- } else {
193
- RTC_DCHECK_EQ (win_up_Q14, 1 << 14 );
194
- }
187
+ RTC_DCHECK_GT (win_up_Q14,
188
+ (1 << 14 ) - 32 ); // Worst case rouding is a length of 34
195
189
} else if (external_mute_factor_array[0 ] < 16384 ) {
196
190
// Previous was neither of Expand, FadeToBGN or RFC3389_CNG, but we are
197
191
// still ramping up from previous muting.
You can’t perform that action at this time.
0 commit comments