From: Dragos Oancea Date: Tue, 26 Oct 2021 08:42:58 +0000 (+0000) Subject: [core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN X-Git-Tag: v1.10.8^2~124^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1403%2Fhead;p=thirdparty%2Ffreeswitch.git [core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 1880bbb19c..843ee81381 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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); snprintf(header, sizeof(header), "Source-Lost"); #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 tmpLost = ntohl(rtcp_report_block->lost)>>8; tmpLost = tmpLost | ((tmpLost & 0x00800000) ? 0xff000000 : 0x00000000); /* ...and signess compensation */