Chromium Code Reviews| Index: webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c |
| diff --git a/webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c b/webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c |
| index 9862f125371d025538f83a721668ab6e8b158e36..cb7aa4567d4f3f93978f4cb6ba76aad199588baa 100644 |
| --- a/webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c |
| +++ b/webrtc/modules/audio_coding/codecs/cng/webrtc_cng.c |
| @@ -370,7 +370,7 @@ int16_t WebRtcCng_Encode(CNG_enc_inst* cng_inst, int16_t* speech, |
| } |
| if ((i == 93) && (index == 0)) |
| index = 94; |
| - SIDdata[0] = index; |
| + SIDdata[0] = (uint8_t)index; |
|
kwiberg-webrtc
2015/06/08 13:09:37
Why is this sort of cast net useful? It has the ad
Peter Kasting
2015/06/08 20:44:28
By "the compiler doesn't verify it", do you mean t
kwiberg-webrtc
2015/06/09 00:48:12
No, I meant that the compiler only verifies that t
Peter Kasting
2015/06/09 01:18:14
Right, so this would be two issues:
(1) Adding an
kwiberg-webrtc
2015/06/09 01:28:26
Those sound very useful to me. Not sure how much o
|
| /* Quantize coefficients with tweak for WebRtc implementation of RFC3389. */ |
| if (inst->enc_nrOfCoefs == WEBRTC_CNG_MAX_LPC_ORDER) { |