Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
ortp
Commits
52f54746
Commit
52f54746
authored
May 23, 2011
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup dead code
parent
8b6bc608
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
52 deletions
+0
-52
src/rtcpparse.c
src/rtcpparse.c
+0
-52
No files found.
src/rtcpparse.c
View file @
52f54746
...
...
@@ -286,55 +286,3 @@ void rtcp_APP_get_data(const mblk_t *m, uint8_t **data, int *len){
*
data
=
NULL
;
}
}
/*old functions: deprecated, but some useful code parts can be reused */
/* Start from now this source code file was written by Nicola Baldo as an extension of
the oRTP library. Copyright (C) 2005 Nicola Baldo nicola@baldo.biz*/
void
report_block_parse
(
RtpSession
*
session
,
report_block_t
*
rb
,
struct
timeval
rcv_time_tv
)
{
rb
->
ssrc
=
ntohl
(
rb
->
ssrc
);
if
(
rb
->
ssrc
!=
session
->
snd
.
ssrc
)
{
ortp_debug
(
"Received rtcp report block related to unknown ssrc (not from us)... discarded"
);
return
;
}
else
{
uint32_t
rcv_time_msw
;
uint32_t
rcv_time_lsw
;
uint32_t
rcv_time
;
double
rtt
;
rcv_time_msw
=
rcv_time_tv
.
tv_sec
;
#if defined(_WIN32_WCE)
rcv_time_lsw
=
(
uint32_t
)
((
double
)
rcv_time_tv
.
tv_usec
*
(
double
)(((
uint64_t
)
1
)
<<
32
)
*
1.0e-6
);
#else
rcv_time_lsw
=
(
uint32_t
)
((
double
)
rcv_time_tv
.
tv_usec
*
(
double
)(
1LL
<<
32
)
*
1.0e-6
);
#endif
rcv_time
=
(
rcv_time_msw
<<
16
)
|
(
rcv_time_lsw
>>
16
);
/*
rb->cum_num_packet_lost = ntoh24(rb->cum_num_packet_lost);
rb->ext_high_seq_num_rec = ntohl(rb->ext_high_seq_num_rec);
rb->interarrival_jitter = ntohl(rb->interarrival_jitter);
rb->lsr = ntohl(rb->lsr);
rb->delay_snc_last_sr = ntohl(rb->delay_snc_last_sr);
*/
/* calculating Round Trip Time*/
if
(
rb
->
lsr
!=
0
)
{
rtt
=
(
double
)
(
rcv_time
-
rb
->
delay_snc_last_sr
-
rb
->
lsr
);
rtt
=
rtt
/
65536
;
//printf("RTT = %f s\n",rtt);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment