aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-04 02:13:40 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-04 02:13:40 +0000
commitfc3600f9e402828a63873da8791c64cf55cb6a41 (patch)
tree266979565610885c9870cb62aacc630269e74999 /channels
parent33add137fbfb4c551575252a0596bf7232a6e9a5 (diff)
fix breakage from slin endianness commit earlier today (sorry :-()
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5375 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_phone.c2
-rwxr-xr-xchannels/iax2-parser.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index 8e5bdb523..7208ea09e 100755
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -559,7 +559,7 @@ static int phone_write_buf(struct phone_pvt *p, const char *buf, int len, int fr
if (space < len)
len = space;
if (swap)
- ast_memcpy_byteswap(p->obuf+p->obuflen, buf, len/2);
+ ast_swapcopy_samples(p->obuf+p->obuflen, buf, len/2);
else
memcpy(p->obuf + p->obuflen, buf, len);
p->obuflen += len;
diff --git a/channels/iax2-parser.c b/channels/iax2-parser.c
index f83e7413f..61038c338 100755
--- a/channels/iax2-parser.c
+++ b/channels/iax2-parser.c
@@ -859,7 +859,7 @@ void iax_frame_wrap(struct iax_frame *fr, struct ast_frame *f)
#if __BYTE_ORDER == __LITTLE_ENDIAN
/* We need to byte-swap slinear samples from network byte order */
if (fr->af.subclass == AST_FORMAT_SLINEAR) {
- ast_memcpy_byteswap(fr->af.data, f->data, fr->af.samples);
+ ast_swapcopy_samples(fr->af.data, f->data, fr->af.samples);
} else
#endif
memcpy(fr->af.data, f->data, fr->af.datalen);