use our SWITCH_BYTE_ORDER macro
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9037 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f7f58ec531
commit
12582c0bf5
|
@ -445,7 +445,7 @@ typedef uint32_t switch_rtp_flag_t;
|
||||||
#pragma pack(push, r1, 1)
|
#pragma pack(push, r1, 1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
||||||
typedef struct {
|
typedef struct {
|
||||||
unsigned version:2; /* protocol version */
|
unsigned version:2; /* protocol version */
|
||||||
unsigned p:1; /* padding flag */
|
unsigned p:1; /* padding flag */
|
||||||
|
|
|
@ -1116,7 +1116,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_play_file(switch_core_session_t *sess
|
||||||
write_frame.timestamp = timer.samplecount;
|
write_frame.timestamp = timer.samplecount;
|
||||||
}
|
}
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
||||||
if (!asis) {
|
if (!asis) {
|
||||||
switch_swap_linear(write_frame.data, (int) write_frame.datalen / 2);
|
switch_swap_linear(write_frame.data, (int) write_frame.datalen / 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue