forked from Mirrors/freeswitch
Merge pull request #170 in FS/freeswitch from ~NIMAST/freeswitch-fs-7203:rtcp-source-fraction-fix to master
* commit '5f7e111f79dd1a965aa956da7495485f52b0a1cc': Fix source fraction always 0 in RTCP events
This commit is contained in:
commit
5e43c6dd25
@ -6207,7 +6207,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++) {
|
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))));
|
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].ssrc = ntohl(report->ssrc);
|
||||||
frame->reports[i].fraction = (uint8_t)ntohl(report->fraction);
|
frame->reports[i].fraction = report->fraction;
|
||||||
frame->reports[i].lost = ntohl(report->lost);
|
frame->reports[i].lost = ntohl(report->lost);
|
||||||
frame->reports[i].highest_sequence_number_received = ntohl(report->highest_sequence_number_received);
|
frame->reports[i].highest_sequence_number_received = ntohl(report->highest_sequence_number_received);
|
||||||
frame->reports[i].jitter = ntohl(report->jitter);
|
frame->reports[i].jitter = ntohl(report->jitter);
|
||||||
|
Loading…
Reference in New Issue
Block a user