diff options
Diffstat (limited to 'third_party/webrtc')
3 files changed, 8 insertions, 8 deletions
diff --git a/third_party/webrtc/src/webrtc/modules/audio_processing/aec/aec_core.c b/third_party/webrtc/src/webrtc/modules/audio_processing/aec/aec_core.c index b2162ac0..9d54b62f 100644 --- a/third_party/webrtc/src/webrtc/modules/audio_processing/aec/aec_core.c +++ b/third_party/webrtc/src/webrtc/modules/audio_processing/aec/aec_core.c @@ -1201,12 +1201,12 @@ static void ProcessBlock(AecCore* aec) { float output[PART_LEN]; float outputH[NUM_HIGH_BANDS_MAX][PART_LEN]; float* outputH_ptr[NUM_HIGH_BANDS_MAX]; + float* xf_ptr = NULL; + for (i = 0; i < NUM_HIGH_BANDS_MAX; ++i) { outputH_ptr[i] = outputH[i]; } - float* xf_ptr = NULL; - // Concatenate old and new nearend blocks. for (i = 0; i < aec->num_bands - 1; ++i) { WebRtc_ReadBuffer(aec->nearFrBufH[i], diff --git a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c index 1d609140..f3e6a105 100644 --- a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c +++ b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/ns_core.c @@ -1204,14 +1204,14 @@ void WebRtcNs_ProcessCore(NoiseSuppressionC* self, float gainTimeDomainHB = 1.0; float avgProbSpeechHB, avgProbSpeechHBTmp, avgFilterGainHB, gainModHB; float sumMagnAnalyze, sumMagnProcess; + const float* const* speechFrameHB = NULL; + float* const* outFrameHB = NULL; + size_t num_high_bands = 0; // Check that initiation has been done. assert(self->initFlag == 1); assert((num_bands - 1) <= NUM_HIGH_BANDS_MAX); - const float* const* speechFrameHB = NULL; - float* const* outFrameHB = NULL; - size_t num_high_bands = 0; if (num_bands > 1) { speechFrameHB = &speechFrame[1]; outFrameHB = &outFrame[1]; diff --git a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c index ed6125aa..7e2a94e0 100644 --- a/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c +++ b/third_party/webrtc/src/webrtc/modules/audio_processing/ns/nsx_core.c @@ -1537,6 +1537,9 @@ void WebRtcNsx_ProcessCore(NoiseSuppressionFixedC* inst, int norm32no1, norm32no2; int flag, sign; int q_domain_to_use = 0; + const short* const* speechFrameHB = NULL; + short* const* outFrameHB = NULL; + size_t num_high_bands = 0; // Code for ARMv7-Neon platform assumes the following: assert(inst->anaLen > 0); @@ -1558,9 +1561,6 @@ void WebRtcNsx_ProcessCore(NoiseSuppressionFixedC* inst, assert(inst->initFlag == 1); assert((num_bands - 1) <= NUM_HIGH_BANDS_MAX); - const short* const* speechFrameHB = NULL; - short* const* outFrameHB = NULL; - size_t num_high_bands = 0; if (num_bands > 1) { speechFrameHB = &speechFrame[1]; outFrameHB = &outFrame[1]; |