summaryrefslogtreecommitdiff
path: root/channels/chan_phone.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-10-29 10:33:14 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2014-10-29 10:33:14 +0000
commitb1acfd36fdebe734a2d7e5de2a5a62566f712ce1 (patch)
tree2db49dc35267aa678e11b7c4cb14e6b61fcf2b90 /channels/chan_phone.c
parent1ba42a4d8e063abb180014cfa930a76311cdf75b (diff)
Fix building chan_phone on big endian systems
A left over from the formats conversion (Corey Farrell). ASTERISK-24458 #close Review: https://reviewboard.asterisk.org/r/4117/ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@426570 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r--channels/chan_phone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c
index ced9b1390..2bf7bddb4 100644
--- a/channels/chan_phone.c
+++ b/channels/chan_phone.c
@@ -827,7 +827,7 @@ static int phone_write(struct ast_channel *ast, struct ast_frame *frame)
} else {
int swap = 0;
#if __BYTE_ORDER == __BIG_ENDIAN
- if (frame->subclass.format.id == AST_FORMAT_SLINEAR)
+ if (ast_format_cmp(frame->subclass.format, ast_format_slin) == AST_FORMAT_CMP_EQUAL)
swap = 1; /* Swap big-endian samples to little-endian as we copy */
#endif
res = phone_write_buf(p, pos, expected, maxfr, swap);