]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7458
authorJeff Lenk <jeff@jefflenk.com>
Tue, 21 Apr 2015 17:06:42 +0000 (12:06 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Tue, 21 Apr 2015 17:06:42 +0000 (12:06 -0500)
src/switch_rtp.c

index 62601ecef42fda0706a7614e849c02d8278fc64f..2d2525c3e751549ce42662c7ecbabcf9d30e5540 100644 (file)
@@ -6208,7 +6208,7 @@ SWITCH_DECLARE(switch_status_t) switch_rtcp_zerocopy_read_frame(switch_rtp_t *rt
                for (i = 0; i < (int)rtp_session->rtcp_recv_msg_p->header.count && i < MAX_REPORT_BLOCKS ; i++) {
                        struct switch_rtcp_report_block* report = (struct switch_rtcp_report_block*) (rtp_session->rtcp_recv_msg_p->body + (sizeof(struct switch_rtcp_sr_head) + (i * sizeof(struct switch_rtcp_report_block))));
                        frame->reports[i].ssrc = ntohl(report->ssrc);
-                       frame->reports[i].fraction = report->fraction;
+                       frame->reports[i].fraction = (uint8_t)report->fraction;
                        frame->reports[i].lost = ntohl(report->lost);
                        frame->reports[i].highest_sequence_number_received = ntohl(report->highest_sequence_number_received);
                        frame->reports[i].jitter = ntohl(report->jitter);