Index: webrtc/modules/audio_processing/ns/nsx_core.c |
diff --git a/webrtc/modules/audio_processing/ns/nsx_core.c b/webrtc/modules/audio_processing/ns/nsx_core.c |
index f6711b5be3464ddccfdbb700a17c8a796ce5c5ad..0f9894e9fc305ee2658431b42f630ebd0cfb3e02 100644 |
--- a/webrtc/modules/audio_processing/ns/nsx_core.c |
+++ b/webrtc/modules/audio_processing/ns/nsx_core.c |
@@ -1215,7 +1215,8 @@ void WebRtcNsx_DataAnalysis(NoiseSuppressionFixedC* inst, |
WebRtcNsx_AnalysisUpdate(inst, winData, speechFrame); |
// Get input energy |
- inst->energyIn = WebRtcSpl_Energy(winData, (int)inst->anaLen, &(inst->scaleEnergyIn)); |
+ inst->energyIn = |
+ WebRtcSpl_Energy(winData, inst->anaLen, &inst->scaleEnergyIn); |
// Reset zero input flag |
inst->zeroInputSignal = 0; |
@@ -1460,7 +1461,8 @@ void WebRtcNsx_DataSynthesis(NoiseSuppressionFixedC* inst, short* outFrame) { |
if (inst->gainMap == 1 && |
inst->blockIndex > END_STARTUP_LONG && |
inst->energyIn > 0) { |
- energyOut = WebRtcSpl_Energy(inst->real, (int)inst->anaLen, &scaleEnergyOut); // Q(-scaleEnergyOut) |
+ // Q(-scaleEnergyOut) |
+ energyOut = WebRtcSpl_Energy(inst->real, inst->anaLen, &scaleEnergyOut); |
if (scaleEnergyOut == 0 && !(energyOut & 0x7f800000)) { |
energyOut = WEBRTC_SPL_SHIFT_W32(energyOut, 8 + scaleEnergyOut |
- inst->scaleEnergyIn); |