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 da9683b3f806b602aaa1d7413c363bb1f2b46ac0..3fe66077784cab2e4bc3358a85f2f6a0cd0363f2 100644 |
--- a/webrtc/modules/audio_coding/neteq/comfort_noise.cc |
+++ b/webrtc/modules/audio_coding/neteq/comfort_noise.cc |
@@ -79,8 +79,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); |