[asterisk-commits] dvossel: trunk r307927 - /trunk/channels/chan_phone.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Feb 15 12:09:29 CST 2011
Author: dvossel
Date: Tue Feb 15 12:09:25 2011
New Revision: 307927
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=307927
Log:
Fixes compile error in chan_phone for big endian
Modified:
trunk/channels/chan_phone.c
Modified: trunk/channels/chan_phone.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_phone.c?view=diff&rev=307927&r1=307926&r2=307927
==============================================================================
--- trunk/channels/chan_phone.c (original)
+++ trunk/channels/chan_phone.c Tue Feb 15 12:09:25 2011
@@ -819,7 +819,7 @@
} else {
int swap = 0;
#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 */
#endif
res = phone_write_buf(p, pos, expected, maxfr, swap);
More information about the asterisk-commits
mailing list