mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 10:58:15 +00:00
fix breakage from slin endianness commit earlier today (sorry :-()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
frame.c
4
frame.c
@@ -402,11 +402,11 @@ int ast_fr_fdhangup(int fd)
|
||||
return ast_fr_fdwrite(fd, &hangup);
|
||||
}
|
||||
|
||||
void ast_swapcopy_samples(void *dst, void *src, int samples)
|
||||
void ast_swapcopy_samples(void *dst, const void *src, int samples)
|
||||
{
|
||||
int i;
|
||||
unsigned short *dst_s = dst;
|
||||
unsigned short *src_s = src;
|
||||
const unsigned short *src_s = src;
|
||||
|
||||
for (i=0; i<samples; i++)
|
||||
dst_s[i] = (src_s[i]<<8) | (src_s[i]>>8);
|
||||
|
||||
Reference in New Issue
Block a user