Author: tzafrir
Date: Wed Oct 29 08:02:27 2014
New Revision: 426573

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=426573
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/

........

Merged revisions 426570 from http://svn.asterisk.org/svn/asterisk/branches/13

Modified:
    trunk/   (props changed)
    trunk/channels/chan_phone.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-13-merged' - no diff available.

Modified: trunk/channels/chan_phone.c
URL: 
http://svnview.digium.com/svn/asterisk/trunk/channels/chan_phone.c?view=diff&rev=426573&r1=426572&r2=426573
==============================================================================
--- trunk/channels/chan_phone.c (original)
+++ trunk/channels/chan_phone.c Wed Oct 29 08:02:27 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);


-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to