]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[core] fix build SWITCH_BYTE_ORDER == __BIG_ENDIAN 1403/head
authorDragos Oancea <dragos@signalwire.com>
Tue, 26 Oct 2021 08:42:58 +0000 (08:42 +0000)
committerDragos Oancea <dragos@signalwire.com>
Tue, 26 Oct 2021 08:42:58 +0000 (08:42 +0000)
src/switch_rtp.c

index 1880bbb19cb36e14f780b3df294beb040824982c..843ee81381b18477617eece169210d28fd7fad62 100644 (file)
@@ -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 */