Index: webrtc/modules/audio_coding/neteq/comfort_noise.cc |
diff --git a/webrtc/modules/audio_coding/neteq/comfort_noise.cc b/webrtc/modules/audio_coding/neteq/comfort_noise.cc |
index 54b0a28e52f35d02545436d38935c7641db63319..5829185d02e2cf626d054504ae29d3fbcff644db 100644 |
--- a/webrtc/modules/audio_coding/neteq/comfort_noise.cc |
+++ b/webrtc/modules/audio_coding/neteq/comfort_noise.cc |
@@ -75,8 +75,7 @@ int ComfortNoise::Generate(size_t requested_length, |
CNG_dec_inst* cng_inst = cng_decoder->CngDecoderInstance(); |
// The expression &(*output)[0][0] is a pointer to the first element in |
// the first channel. |
- if (WebRtcCng_Generate(cng_inst, &(*output)[0][0], |
- static_cast<int16_t>(number_of_samples), |
+ if (WebRtcCng_Generate(cng_inst, &(*output)[0][0], number_of_samples, |
new_period) < 0) { |
// Error returned. |
output->Zeros(requested_length); |