G711: Make input arrays const and use uint8_t[] for byte arrays
BUG=909 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/39809004 Cr-Commit-Position: refs/heads/master@{#8294} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8294 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -1558,12 +1558,12 @@ int NetEQTest_encode(int coder, int16_t *indata, int frameLen, unsigned char * e
|
||||
/* Encode with the selected coder type */
|
||||
if (coder==webrtc::kDecoderPCMu) { /*g711 u-law */
|
||||
#ifdef CODEC_G711
|
||||
cdlen = WebRtcG711_EncodeU(indata, frameLen, (int16_t*) encoded);
|
||||
cdlen = WebRtcG711_EncodeU(indata, frameLen, encoded);
|
||||
#endif
|
||||
}
|
||||
else if (coder==webrtc::kDecoderPCMa) { /*g711 A-law */
|
||||
#ifdef CODEC_G711
|
||||
cdlen = WebRtcG711_EncodeA(indata, frameLen, (int16_t*) encoded);
|
||||
cdlen = WebRtcG711_EncodeA(indata, frameLen, encoded);
|
||||
}
|
||||
#endif
|
||||
#ifdef CODEC_PCM16B
|
||||
|
||||
Reference in New Issue
Block a user