mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 00:00:44 +00:00
Merge pull request #1403 from dragos-oancea/_big_endian_rtcp
[core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN
This commit is contained in:
commit
3decbb830c
@ -2155,7 +2155,7 @@ static void switch_send_rtcp_event(switch_rtp_t *rtp_session ,struct switch_rtcp
|
|||||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header, value);
|
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, header, value);
|
||||||
snprintf(header, sizeof(header), "Source-Lost");
|
snprintf(header, sizeof(header), "Source-Lost");
|
||||||
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
#if SWITCH_BYTE_ORDER == __BIG_ENDIAN
|
||||||
tmpLost = report->lost; /* signed 24bit will extended signess to int32_t automatically */
|
tmpLost = rtcp_report_block->lost; /* signed 24bit will extended signess to int32_t automatically */
|
||||||
#else
|
#else
|
||||||
tmpLost = ntohl(rtcp_report_block->lost)>>8;
|
tmpLost = ntohl(rtcp_report_block->lost)>>8;
|
||||||
tmpLost = tmpLost | ((tmpLost & 0x00800000) ? 0xff000000 : 0x00000000); /* ...and signess compensation */
|
tmpLost = tmpLost | ((tmpLost & 0x00800000) ? 0xff000000 : 0x00000000); /* ...and signess compensation */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user