[asterisk-commits] tzafrir: branch 13 r426570 - /branches/13/channels/chan_phone.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Oct 29 05:33:25 CDT 2014
Author: tzafrir
Date: Wed Oct 29 05:33:14 2014
New Revision: 426570
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426570
Log:
Fix building chan_phone on big endian systems
A left over from the formats conversion (Corey Farrell).
AST-24458 #close
Review: https://reviewboard.asterisk.org/r/4117/
Modified:
branches/13/channels/chan_phone.c
Modified: branches/13/channels/chan_phone.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/channels/chan_phone.c?view=diff&rev=426570&r1=426569&r2=426570
==============================================================================
--- branches/13/channels/chan_phone.c (original)
+++ branches/13/channels/chan_phone.c Wed Oct 29 05:33:14 2014
@@ -827,7 +827,7 @@
} 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);
More information about the asterisk-commits
mailing list