bug 912613: remove last vestige of WebRTC_Word* types in big-endian builds only r=padenot DONTBUILD

This commit is contained in:
Randell Jesup 2013-09-05 15:29:36 -04:00
parent f6dbbf0736
commit ac2e6b8d42

View File

@ -26,7 +26,7 @@ int16_t WebRtcPcm16b_EncodeW16(int16_t *speechIn16b,
int16_t *speechOut16b)
{
#ifdef WEBRTC_BIG_ENDIAN
memcpy(speechOut16b, speechIn16b, len * sizeof(WebRtc_Word16));
memcpy(speechOut16b, speechIn16b, len * sizeof(int16_t));
#else
int i;
for (i=0;i<len;i++) {
@ -65,7 +65,7 @@ int16_t WebRtcPcm16b_DecodeW16(void *inst,
int16_t* speechType)
{
#ifdef WEBRTC_BIG_ENDIAN
memcpy(speechOut16b, speechIn16b, ((len*sizeof(WebRtc_Word16)+1)>>1));
memcpy(speechOut16b, speechIn16b, ((len*sizeof(int16_t)+1)>>1));
#else
int i;
int samples=len>>1;