mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Fixes compile error in chan_phone for big endian
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@307927 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -819,7 +819,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
|
|||||||
} else {
|
} else {
|
||||||
int swap = 0;
|
int swap = 0;
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
if (frame->subclass.codec == AST_FORMAT_SLINEAR)
|
if (frame->subclass.format.id == AST_FORMAT_SLINEAR)
|
||||||
swap = 1; /* Swap big-endian samples to little-endian as we copy */
|
swap = 1; /* Swap big-endian samples to little-endian as we copy */
|
||||||
#endif
|
#endif
|
||||||
res = phone_write_buf(p, pos, expected, maxfr, swap);
|
res = phone_write_buf(p, pos, expected, maxfr, swap);
|
||||||
|
|||||||
Reference in New Issue
Block a user